matplotlib_helpers Package¶
matplotlib_helpers
Package¶
chart
Module¶
-
matplotlib_helpers.chart.
encode
(df_data, **kwargs)[source]¶ Parameters: - x (str) – Label of column containing
x
-dimension. - y (str) – Label of column containing
y
-dimension. - row (str, optional) – Label of column containing row categories. If
None
, all data is plotted in a single row of plots. - column (str, optional) – Label of column containing column categories. If
None
, all data is plotted in a single column of plots. - color (str, optional) – Label of column containing color categories. If
None
, all data is plotted in the same color. - shape (str, optional) – Label of column containing shape categories. If
None
, all data is plotted using the same marker shape. - style (str, optional) – Label of column containing style categories. If
None
, all data is plotted using the same line style. - sharexscale (bool or 'column', optional) – If
True
(default) all subplots share the same scale on thex
axis. If'column'
all subplots in the same column share the samex
axis. IfFalse
, thex
axis of each subplot is scaled independently. - shareyscale (bool or 'row', optional) – If
True
(default) all subplots share the same scale on they
axis. If'row'
all subplots in the same row share the samey
axis. IfFalse
, they
axis of each subplot is scaled independently. - fill (bool, optional) – Fill markers
- stroke (bool, optional) – Draw marker outlines
- linestyle (str, optional) –
Line style to use for plot.
By default, if
shape
is set,linestyle
is set to"none"
. Ifshape
is not set,linestyle
is set to"--"
by default.
Returns: The
matplotlib
figure (fig
), a nested dictionary (axes
) indexed by row key then by column key, apandas.Series
(keys
) mapping each categorical argument name to the corresponding column label, apandas.Series
(values
) mapping each categorical argument name to a corresponding list of unique category values.Return type: (fig, axes, keys, values)
- x (str) – Label of column containing
-
matplotlib_helpers.chart.
time_total_seconds
(t)¶