fastplotlib.NDGraphic#
- class NDGraphic(nd_subplot, name)[source]#
Base class that pairs an
NDSlicerwith aGraphic. Subclass to support a new graphical representation.The
NDSlicerproduces the data slice for the current index and theNDGraphicwrites it to theGraphic. When theReferenceIndexof the parentNDWidgetchanges, it schedules_set_indices_()on everyNDGraphicthat has the dim that changed.Subclasses must implement
_create_graphic()and_set_indices_(), and theslicer,graphic,indicesanddisplay_dimsproperties. Most of the slicer properties are aliased here so users can reach them from theNDGraphic, and setting one of those aliases re-renders the current slice.- Parameters:
nd_subplot (NDWSubplot) – parent NDWSubplot the NDGraphic is in
name (str or None) – Name for this
NDGraphic, used to retrieve it withnd_subplot[name].