line

This module provides the Line class.

class mATLASplotlib.plotters.line.Line(plot_style)

Bases: mATLASplotlib.plotters.base_plotter.BasePlotter

Plot as a line in the x-y plane

Additional plot_style options:
 
  • join centres – join the centres with straight line segments
  • smooth – draw a smooth line through the points
  • stepped – draw a stepped line graph
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
  • linewidth (str) – how wide to draw the line
  • marker (str) – which marker to use