yt.data_objects.construction_data_containers.
YTStreamlineBase
(positions, length=1.0, fields=None, ds=None, **kwargs)[source]¶This is a streamline, which is a set of points defined as being parallel to some vector field.
This object is typically accessed through the Streamlines.path function. The resulting arrays have their dimensionality reduced to one, and an ordered list of points at an (x,y) tuple along axis are available, as is the t field, which corresponds to a unitless measurement along the ray from start to end.
Parameters: | positions : array-like
length : float
fields : list of strings, optional
ds : dataset object
kwargs : dict of items
|
---|
Examples
>>> from yt.visualization.api import Streamlines
>>> streamlines = Streamlines(ds, [0.5]*3)
>>> streamlines.integrate_through_volume()
>>> stream = streamlines.path(0)
>>> matplotlib.pylab.semilogy(stream['t'], stream['density'], '-x')
Attributes
Methods