yt.visualization.plot_window.PlotWindow

class yt.visualization.plot_window.PlotWindow(data_source, bounds, buff_size=(800, 800), antialias=True, periodic=True, origin='center-window', oblique=False, window_size=8.0, fields=None, fontsize=18, aspect=None, setup=False)[source]

A ploting mechanism based around the concept of a window into a data source. It can have arbitrary fields, each of which will be centered on the same viewpoint, but will have individual zlimits.

The data and plot are updated separately, and each can be invalidated as the object is modified.

Data is handled by a FixedResolutionBuffer object.

Parameters:

data_source : yt.data_objects.construction_data_containers.YTQuadTreeProjBase or yt.data_objects.selection_data_containers.YTSliceBase

This is the source to be pixelized, which can be a projection or a slice. (For cutting planes, see yt.visualization.fixed_resolution.ObliqueFixedResolutionBuffer.)

bounds : sequence of floats

Bounds are the min and max in the image plane that we want our image to cover. It’s in the order of (xmin, xmax, ymin, ymax), where the coordinates are all in the appropriate code units.

buff_size : sequence of ints

The size of the image to generate.

antialias : boolean

This can be true or false. It determines whether or not sub-pixel rendering is used during data deposition.

window_size : float

The size of the window on the longest axis (in units of inches), including the margins but not the colorbar.

Methods