pymgipsim.Plotting.plotting¶
Functions
Plot all states over time in subplots. |
|
Plot the blood glucose concentration (BGC) over time. |
|
- plot_all_states(time, all_states, state_units, state_names, figsize, figcolor)[source]¶
Plot all states over time in subplots.
Parameters: - formatted_time: np.ndarray
Time array for plotting.
- all_states: np.ndarray
4D array containing state data for different days and variables.
- state_names: list
List of state variable names.
- state_units: list
List of units corresponding to state variables.
Returns: - fig: matplotlib.figure.Figure
The created matplotlib figure.
- plot_bgc(time, glucose, figsize, figcolor)[source]¶
Plot the blood glucose concentration (BGC) over time.
Parameters: - formatted_time: np.ndarray
Time array for plotting.
- formatted_glucose: np.ndarray
2D array containing blood glucose data for different subjects.
Returns: - fig: matplotlib.figure.Figure
The created matplotlib figure.