ModelData¶
- class gdt.core.plot.plot.ModelData(x, y, xerr, yerr, ax, ulmask=None, color='C0', alpha=1.0, **kwargs)[source]¶
Bases:
PlotElementPlot a set of data with errors derived from the model variances.
- Parameters:
x (np.array) – The x coordinates of the data plot points
y (np.array) – The y coordinates of the data plot points
xerr (np.array) – The uncertainty of the x points
yerr (np.array) – The uncertainty of the y points
ax (
matplotlib.axes) – The axis on which to plotulmask (np.array(dtype=bool), optional) – A boolean array of the same size as x and y indicating which points are upper limits (True) and which are data points (False).
color (str, optional) – The color of the model
alpha (float, optional) – The alpha of the fill. Default is 1
**kwargs – Other plotting options
Attributes Summary
The alpha opacity value, between 0 and 1.
The object references to the individual matplotlib elements
The color of the plot element
True if the element is shown on the plot, False otherwise
The plot element zorder
Methods Summary
hide()Hide the plot element
remove()Remove the plot element
show()Show the plot element
toggle()Toggle the visibility of the plot element
Attributes Documentation
- alpha¶
The alpha opacity value, between 0 and 1.
- Type:
(float)
- artists¶
The object references to the individual matplotlib elements
- Type:
(list)
- color¶
The color of the plot element
- Type:
(str)
- visible¶
True if the element is shown on the plot, False otherwise
- Type:
(bool)
- zorder¶
The plot element zorder
- Type:
(int)
Methods Documentation
- hide()¶
Hide the plot element
- remove()¶
Remove the plot element
- show()¶
Show the plot element
- toggle()¶
Toggle the visibility of the plot element