Create a projection, from that a projection plot, and add it to the current collection.
This function will generate a yt.lagos.AMRProjBase from the given parameters. This projection then gets passed to a yt.raven.ProjectionPlot, 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
data_source : yt.lagos.AMRData
weight_field : string
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.AMRProjBase, optional
field_parameters : dict, optional
|
---|---|
Returns : | plot : yt.raven.ProjectionPlot
|
See also
Notes
This is the primary mechanism for creating projection plots, and generating projection 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_projection("Density", 0, "Density")