yt.visualization.plot_modifications.StreamlineCallback

class yt.visualization.plot_modifications.StreamlineCallback(field_x, field_y, factor=16, density=1, plot_args=None)[source]
annotate_streamlines(field_x, field_y, factor=16,
density=1, plot_args=None):

Add streamlines to any plot, using the field_x and field_y from the associated data, skipping every factor datapoints like ‘quiver’. density is the index of the amount of the streamlines.

Methods