The primary interface for creating plots.
The PlotCollection object was created to ease the creation of multiple slices, projections and so forth made from a single parameter file. The concept is that when the width on one image changes, it should change on all the others. The PlotCollection can create all plot types available in yt.
Parameters : | pf : StaticOutput
center : array_like, optional
Long_variable_name : {‘hi’, ‘ho’}, optional
|
---|
Notes
This class is the primary entry point to creating plots, but it is not the only entry point. Additionally, creating a PlotCollection should be a “cheap” operation.
You may iterate over the plots in the PlotCollection, via something like:
>>> pc = PlotCollection(pf)
>>> for p in pc: print p
Examples
>>> pc = PlotCollection(pf, center=[0.5, 0.5, 0.5])
>>> pc.add_slice("Density", 0)
>>> pc.save()