trappy.plotter.BarPlot module¶
This class sublclasses trappy.plotter.StaticPlot.StaticPlot
to
implement a bar plot.
-
class
trappy.plotter.BarPlot.
BarPlot
(traces, templates=None, **kwargs)[source]¶ Bases:
trappy.plotter.StaticPlot.StaticPlot
BarPlot can plot data as vertical bars
Values are plotted against their position in the list of data.
Parameters: - traces (A single instance or a list of
trappy.trace.FTrace
,trappy.trace.SysTrace
,trappy.trace.BareTrace
orpandas.DataFrame
.) – The input data - column (str or list(str)) – specifies the name of the column to be plotted.
- templates (
trappy.base.Base
) –TRAPpy events
Note
This is not required if a
pandas.DataFrame
is used - signals (str or list(string)) –
A string of the type event_name:column to indicate the value that needs to be plotted
Note
- Only one of signals or both templates and columns should be specified
- Signals format won’t work for
pandas.DataFrame
input
- title (str) – A title describing the generated plots
- stacked (bool) – The series are grouped by default. If you want a stacked plot, set stacked to True.
- spacing (float) – A proportion of the size of each group which should be used as the spacing between the groups. e.g. 0.2 (default) means that 1/5 of the groups total width is used as a spacing between groups.
- traces (A single instance or a list of