class act.plotting.TimeSeriesDisplay(ds, subplot_shape=(1,), ds_name=None, **kwargs)[source]

This subclass contains routines that are specific to plotting time series plots from data. It is inherited from Display and therefore contains all of Display’s attributes and methods.


To create a TimeSeriesDisplay with 3 rows, simply do:

ds =
disp = act.plotting.TimeSeriesDisplay(ds, subplot_shape=(3,), figsize=(15, 5))

The TimeSeriesDisplay constructor takes in the same keyword arguments as plt.subplots. For more information on the plt.subplots keyword arguments, see the matplotlib documentation. If no subplot_shape is provided, then no figure or axis will be created until add_subplots or plots is called.

add_colorbar(mappable[, title, ...])

Adds a colorbar to the plot.

add_subplots([subplot_shape, secondary_y, ...])

Adds subplots to the Display object.

assign_to_figure_axis(fig, ax)

This assigns the Display to a specific figure and axis.

day_night_background([dsname, subplot_index])

Colorcodes the background according to sunrise/sunset.

fill_between(field[, dsname, subplot_index, ...])

Makes a fill_between plot, based on matplotlib


Group the Display by specific units of time.

plot(field[, dsname, subplot_index, cmap, ...])

Makes a timeseries plot.

plot_barbs_from_spd_dir(speed_field, ...[, ...])

This procedure will make a wind barb plot timeseries.

plot_barbs_from_u_v(u_field, v_field[, ...])

This function will plot a wind barb timeseries from u and v wind data.


This will plot a time-height cross section from 1D datasets using nearest neighbor interpolation on a regular time by height grid.

put_display_in_subplot(display, subplot_index)

This will place a Display object into a specific subplot.

qc_flag_block_plot([data_field, dsname, ...])

Create a time series plot of embedded quality control values using broken barh plotting.

set_xrng(xrng[, subplot_index])

Sets the x range of the plot.

set_yrng(yrng[, subplot_index, ...])

Sets the y range of the plot.

time_height_scatter([data_field, alt_field, ...])

Create a time series plot of altitude and data variable with color also indicating value with a color bar.