Plotting#

abcmodel.plotting.simple(time, trajectory, left_top_path='atmos.mixed.h_abl', mid_top_path='atmos.mixed.theta', right_top_path='atmos.mixed.q', left_bottom_path='atmos.clouds.cc_frac', mid_bottom_path='land.surface.le', right_bottom_path='land.wCO2', axes=None, **kwargs)[source]#

Plot trajectories of variables against time.

Parameters:
  • time (Array) – time array.

  • trajectory (AbstractCoupledState) – coupled state trajectory.

  • left_top_path (str) – path to the variable within the trajectory object

  • "atmos.mixed.h_abl". (to be plotted on the left top subplot. Default is)

  • mid_top_path (str) – path to the variable within the trajectory object

  • "atmos.mixed.theta". (to be plotted on the mid top subplot. Default is)

  • right_top_path (str) – path to the variable within the trajectory object

  • "atmos.mixed.q". (to be plotted on the right top subplot. Default is)

  • left_bottom_path (str) – path to the variable within the trajectory object

  • "atmos.clouds.cc_frac". (to be plotted on the left bottom subplot. Default is)

  • mid_bottom_path (str) – path to the variable within the trajectory object

  • "land.le". (to be plotted on the mid bottom subplot. Default is)

  • right_bottom_path (str) – path to the variable within the trajectory object

  • "land.wCO2". (to be plotted on the right bottom subplot. Default is)

  • axes (Any) – optional matplotlib axes to plot on.

  • **kwargs – additional keyword arguments to pass to matplotlib’s plot function.

abcmodel.plotting.get_label_from_metadata(meta, default_label)[source]#

Extract label from field metadata.