DataIMGPlot
- class sherpa.astro.plot.DataIMGPlot[source] [edit on github]
Bases:
ImageClass for DataIMG plots.
Warning
This class is experimental and subject to change in the future. Currently, is is only used within _repr_html_ methods.
- Attributes:
- x0
- x1
- y
Methods
plot([overplot, clearwindow])Draw a point at the given location.
prepare
Attributes Summary
The preferences for the plot.
Methods Summary
plot([overplot, clearwindow])Draw a point at the given location.
prepare(img)Attributes Documentation
- aspect = 'auto'
- title = ''
- x0 = None
- x1 = None
- xlabel = 'x'
- y = None
- ylabel = 'y'
Methods Documentation
- plot(overplot=False, clearwindow=True, **kwargs)[source] [edit on github]
Draw a point at the given location.
- Parameters:
- x0, x1array_like
Value for the image axes.
- yarray_like, 2D
The coordinates of the plot.
- overplotbool,
optional If
Truethen add the data to an existing plot, otherwise create a new plot.- clearwindowbool,
optional Should the existing plot area be cleared before creating this new plot (e.g. for multi-panel plots)?
- **kwargs
These values are passed on to the plot backend, and must match the names of the keys of the object’s image_prefs dictionary.
- prepare(img)[source] [edit on github]