rcatool.plot.plots.make_line_plot
- rcatool.plot.plots.make_line_plot(grid, ydata, xdata=None, labels=None, lbl_fontsize='x-large', axis_type='linear', **lp_kwargs)[source]
Create a line plot
- Parameters:
grid (Axis object) – returned from the ‘fig_grid_setup’ function
ydata (array/list) – Required. 1D array or list of 1D arrays with data for y axis
xdata (array/list) – Optional. 1D array or list of 1D arrays with data for x axis
labels (string/list) – String or list of strings with line labels
lbl_fontsize (string/float) – Fontsize for legend labels
axis_type (str) – Linear or log axes: ‘linear’ (defualt), ‘logx’/’logy’/’logxy’ (log x, y or both axes).
**lp_kwargs (keyword arguments) – arguments (key=value) that can be used in pyplot.line See matplotlib.org for more information
- Returns:
axs – The axes objects created for each plot
- Return type:
Axes objects