Mission.plot_time_series

Mission.plot_time_series(varname=('p_sfc', 'wspd'), time=None, realtime=False, **kwargs)[source]

Plots a time series of one or two variables on an axis.

Parameters
  • varname (str or tuple) –

    If one variable to plot, varname is a string of the variable name. If two variables to plot, varname is a tuple of the left and right variable names, respectively. Available varnames are:

    • p_sfc - Mean Sea Level Pressure (hPa)

    • temp - Flight Level Temperature (C)

    • dwpt - Flight Level Dewpoint (C)

    • wspd - Flight Level Wind (kt)

    • sfmr - Surface Wind (kt)

    • pkwnd - Peak Wind Gust (kt)

    • rain - Rain Rate (mm/hr)

    • plane_z - Geopotential Height (m)

    • plane_p - Pressure (hPa)

  • time (tuple) – Tuple of start and end times (datetime.datetime) to plot. If None, all times available are plotted.

  • realtime (bool) – If True, the most recent 2 hours of the mission will plot, overriding the time argument. Default is False.

Other Parameters
  • left_prop (dict) – Dictionary of properties for the left line. Scroll down for more information.

  • right_prop (dict) – Dictionary of properties for the right line. Scroll down for more information.

Returns

ax – Instance of axes containing the plot is returned.

Notes

The following properties are available for customizing the plot, via left_prop and right_prop.

Property

Description

ms

Marker size. If zero, none will be plotted. Default is zero.

color

Color of lines (and markers if used). Default varies per varname.

linewidth

Line width. Default is 1.0.