ILAMB.Variable.Variable.plot

Variable.plot(ax, **keywords)[source]

Plots the variable on the given matplotlib axis.

The behavior of this routine depends on the type of variable specified. If the data is purely temporal, then the plot will be a scatter plot versus time of the data. If it is purely spatial, then the plot will be a global plot of the data. The routine supports multiple keywords although some may not apply to the type of plot being generated.

Parameters
  • ax (matplotlib.axes._subplots.AxesSubplot) – The matplotlib axes object onto which you wish to plot the variable

  • lw (float, optional) – The line width to use when plotting

  • alpha (float, optional) – The degree of transparency when plotting, alpha in [0,1]

  • color (str or RGB tuple, optional) – The color to plot with in line plots

  • label (str, optional) – The label to appear in the legend of line plots

  • vmin (float, optional) – The minimum plotted value

  • vmax (float, optional) – The maximum plotted value

  • region (str, optional) – The region on which to display a spatial variable

  • cmap (str, optional) – The name of the colormap to be used in plotting the spatial variable

  • ticks (array of floats, optional) – Defines the locations of xtick

  • ticklabels (array of strings, optional) – Defines the labels of the xticks