create_subplots_for_variables
- cosipy.postprocessing.field_plots.plot_cosipy_fields.create_subplots_for_variables(variables=None)[source]
Creates adaptive subplots for an array of variables.
Array is shaped as [nrows[ncols]].
- Returns:
Figure with subplots for each variable.
- Return type:
tuple[plt.Figure, np.ndarray]
- Raises:
ValueError – Passed empty variable array to adaptive subplots.
- Parameters:
variables (list)