scatter¶
This module provides the Scatter class.
-
class
mATLASplotlib.plotters.scatter.Scatter(plot_style)¶ Bases:
mATLASplotlib.plotters.base_plotter.BasePlotterPlot as scattered points in the x-y plane
-
__init__(plot_style)¶ Initialise plotting properties.
Parameters: plot_style (str) – which plotting style to use.
Plot_style options: - scatter join centres – also draw a line joining the bin centre
- scatter xerror – also draw error bars in the x-direction
- scatter yerror – also draw error bars in the y-direction
-
add_to_axes(axes, dataset, **kwargs)¶ Add the chosen dataset to the chosen axes.
Parameters: - axes (matplotlib.axes) – which axes to plot this dataset on
- dataset (matplotlib.axes) – which axes to plot this dataset on
Keyword Arguments: - colour (str) – which face colour to use
- label (str) – label to use when this appears in a legend
- linestyle (str) – which style (dotted/dashed/solid etc.) to draw the line with if join centers is specified
- linewidth (str) – how wide to draw the line
- marker (str) – which marker to use
- with_error_bar_caps (bool) – whether to draw caps on the end of the error bars
-