emc2.plotting (emc2.plotting)

This module contains routines for visualizing simulated radar data from EMC^2.

SubcolumnDisplay(model, **kwargs)

This class contains modules for displaying the generated subcolumn parameters as quicklook plots.

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.
plot_subcolumn_timeseries(self, variable, column_no, pressure_coords=True, title=None, subplot_index=(0, ), **kwargs)[source]

Plots timeseries of subcolumn parameters for a given variable and subcolumn.

Parameters
variable: str

The subcolumn variable to plot.

column_no: int

The subcolumn number to plot.

pressure_coords: bool

Set to true to plot in pressure coordinates, false to height coordinates.

title: str or None

The title of the plot. Set to None to have EMC^2 generate a title for you.

subplot_index: tuple

The index of the subplot to make the plot in.

Additional keyword arguments are passed into matplotlib’s matplotlib.pyplot.pcolormesh.
Returns
axes: Matplotlib axes handle

The matplotlib axes handle of the plot.