mdse.visualizeDB.make_plot
This module provides the main entry point for creating various plots.
It contains a dispatcher function that selects the appropriate plotting function based on the configuration and executes it with the provided data.
Functions
|
Takes information about a plot and creates it. |
|
Checks if the plot type is valid and returns the corresponding plot function. |
- mdse.visualizeDB.make_plot.make_plot(plot_name, plot_info, sim_data)
Takes information about a plot and creates it.
This function serves as the main entry point for plotting. It attempts to create a plot based on the provided information. If it fails (e.g., due to bad information), it logs the error and continues without crashing.
- Parameters:
plot_name (str) – The name of the plot, used for saving the file.
plot_info (dict) – Contains plot-specific information, such as the plot type and other parameters.
sim_data (list[dict]) – The simulation data to be plotted.
- mdse.visualizeDB.make_plot.valid_plot(plot_type)
Checks if the plot type is valid and returns the corresponding plot function.
- Parameters:
plot_type (str) – The type of plot to validate.
- Returns:
The function that creates the specified plot type.
- Return type:
callable
- Raises:
ValueError – If the plot_type is not supported.