emc2.plotting.SubcolumnDisplay¶
-
class
emc2.plotting.
SubcolumnDisplay
(model, **kwargs)[source]¶ This class contains modules for displaying the generated subcolumn parameters as quicklook plots. It is inherited from ACT’s Display object. For more information on the Display object and its attributes and parameters, click here. In addition to the methods in
Display
,SubcolumnDisplay
has the following attributes and methods:Examples
This example makes a four panel plot of 4 subcolumns of EMC^2 simulated reflectivity:
$ model_display = emc2.plotting.SubcolumnDisplay(my_model, subplot_shape=(2, 2), figsize=(30, 20)) $ model_display.plot_subcolumn_timeseries('sub_col_Ze_cl_strat', 1, subplot_index=(0, 0)) $ model_display.plot_subcolumn_timeseries('sub_col_Ze_cl_strat', 2, subplot_index=(1, 0)) $ model_display.plot_subcolumn_timeseries('sub_col_Ze_cl_strat', 3, subplot_index=(0, 1)) $ model_display.plot_subcolumn_timeseries('sub_col_Ze_cl_strat', 4, subplot_index=(1, 1))
- Attributes
- model: emc2.core.Model
The model object containing the subcolumn data to plot.
- Parameters
- model: emc2.core.Model
The model containing the subcolumn data to plot.
- Additional keyword arguments are passed into act.plotting.plot.Display’s constructor.
-
__init__
(self, model, **kwargs)[source]¶ - Parameters
- model: emc2.core.Model
The model containing the subcolumn data to plot.
- Additional keyword arguments are passed into act.plotting.plot.Display’s constructor.
Methods
__init__
(self, model, \*\*kwargs)- Parameters
add_colorbar
(self, mappable[, title, …])Adds a colorbar to the plot.
add_subplots
(self[, subplot_shape, subplot_kw])Adds subplots to the Display object.
assign_to_figure_axis
(self, fig, ax)This assigns the Display to a specific figure and axis.
plot_subcolumn_timeseries
(self, variable, …)Plots timeseries of subcolumn parameters for a given variable and subcolumn.
put_display_in_subplot
(self, display, …)This will place a Display object into a specific subplot.