Create a fixed resolution image from an existing buffer.
This accepts a FixedResolutionBuffer and will make a plot from that buffer.
Parameters : | frb : yt.raven.FixedResolutionBuffer
field : string
use_colorbar : bool, optional
figure : matplotlib.figure.Figure, optional
axes : matplotlib.axes.Axes, optional
fig_size : tuple of floats
|
---|---|
Returns : | plot : yt.raven.FixedResolutionPlot
|
See also
Examples
Here’s a simple mechanism for getting the angular momentum of a collapsing cloud and generating a cutting plane aligned with the angular momentum vector.
>>> pf = load("RD0005-mine/RedshiftOutput0005")
>>> proj = pf.h.proj(0, "Density")
>>> frb = FixedResolutionBuffer(proj, (0.2, 0.3, 0.4, 0.5), (512, 512))
>>> p = pc.add_fixed_resolution_plot(frb, "Density")