Create a slice, from that a slice plot, and add it to the current collection.
This function will generate a yt.lagos.AMRSliceBase from the given parameters. This slice then gets passed to a yt.raven.SlicePlot, and the resultant plot is added to the current collection. Various parameters allow control of the way the slice is displayed, as well as how the slice is generated.
Parameters : | field : string
axis : int
coord : float, optional
center : array_like, optional
use_colorbar : bool, optional
figure : matplotlib.figure.Figure, optional
axes : matplotlib.axes.Axes, optional
fig_size : tuple of floats
periodic : boolean, optional
obj : yt.lagos.AMRSliceBase, optional
field_parameters : dict, optional
|
---|---|
Returns : | plot : yt.raven.SlicePlot
|
See also
Notes
This is the primary mechanism for creating slice plots, and generating slice plots along multiple axes was the original purpose of the PlotCollection.
Note that all plots can be modified. See callback_list for more information.
Examples
>>> pf = load("RD0005-mine/RedshiftOutput0005")
>>> pc = PlotCollection(pf, [0.5, 0.5, 0.5])
>>> p = pc.add_slice("Density", 0)