memilio.epidata.customPlot
customPlot.py Plots time series data as provided by the scripts.
Functions
|
Plots a variable number of time series data on the same time window inside one plot. |
- memilio.epidata.customPlot.plot_multiple_series(
- x,
- y,
- legend,
- title='',
- xlabel='',
- ylabel='',
- linewidth=1,
- xticks_idx='default',
- loc_legend='upper left',
- fig_size=(10, 6),
- plot_outside=True,
- fig_name='customPlot',
- path_rel='figures/',
- dpi=300,
- outercolor='white',
- innercolor='white',
Plots a variable number of time series data on the same time window inside one plot.
- Parameters:
x – x values to plot.
y – List of curve(s) to plot.
legend – List of legend(s) for y value curve(s).
title – title of the plot. (Default value = ‘’)
xlabel – labels for x values. (Default value = ‘’)
ylabel – labels for y values. (Default value = ‘’)
linewidth – Default: 1] Width of plotted curves.
xticks_idx – Default: ‘default’] List of xticks indices to be used. If ‘default’ is used, then every 30th x-value is printed.
dpi – Dots per inch of figure. (Default value = 300)
outercolor – Outer color of figure.
innercolor – Inner color of figure. (Default value = ‘white’)
fig_name – name of the figure to save. (Default value = ‘customPlot’)
loc_legend – (Default value = ‘upper left’)
fig_size – (Default value = (10, 6))
plot_outside – (Default value = True)
path_rel – (Default value = ‘figures/’)