DataIMGPlot
- class sherpa.astro.plot.DataIMGPlot[source] [edit on github]
Bases:
Image
Class 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 Summary
The preferences for the plot.
Methods Summary
plot
([overplot, clearwindow])Draw a point at the given location.
prepare
(img)Attributes Documentation
- aspect = 'auto'
- image_prefs = {}
The preferences for the plot.
- 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 (array-like) – Value for the image axes.
x1 (array-like) – Value for the image axes.
y (array-like, 2D) – The coordinates of the plot.
overplot (bool, optional) – If
True
then add the data to an existing plot, otherwise create a new plot.clearwindow (bool, 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]