piel.visual.auto_plot_multiple
#
Module Contents#
Functions#
|
Plot a simple line graph. |
|
Plot multiple rows of data on the same plot. Each row is a different line. Each row is a different y axis. The x |
- plot_simple(x_data: numpy.array, y_data: numpy.array, ylabel: str, xlabel: str)[source]#
Plot a simple line graph.
- Parameters:
x_data (np.array) – X axis data.
y_data (np.array) – Y axis data.
ylabel (str) – Y axis label.
xlabel (str) – X axis label.
- Returns:
Matplotlib plot.
- Return type:
plt
- plot_simple_multi_row(data: pandas.DataFrame, x_axis_column_name: str = 't', row_list: list | None = None, y_axis_title_list: list | None = None, x_axis_title: str | None = None)[source]#
Plot multiple rows of data on the same plot. Each row is a different line. Each row is a different y axis. The x axis is the same for all rows. The y axis title is the same for all rows.
- Parameters:
data (pd.DataFrame) – Data to plot.
x_axis_column_name (str, optional) – Column name of the x axis. Defaults to “t”.
row_list (list, optional) – List of column names to plot. Defaults to None.
y_axis_title_list (list, optional) – List of y axis titles. Defaults to None.
x_axis_title (str, optional) – Title of the x axis. Defaults to None.
- Returns:
Matplotlib plot.
- Return type:
plt