mpas_analysis.shared.plot.plotting.plot_1D¶
-
mpas_analysis.shared.plot.plotting.
plot_1D
(config, xArrays, fieldArrays, errArrays, lineColors=None, lineStyles=None, markers=None, lineWidths=None, legendText=None, title=None, xlabel=None, ylabel=None, fileout='plot_1D.png', figsize=(10, 4), dpi=None, xLim=None, yLim=None, invertYAxis=False)[source]¶ Plots a 1D line plot with error bars if available.
Parameters: - config : instance of ConfigParser
the configuration, containing a [plot] section with options that control plotting
- xArrays : list of float arrays
x array (latitude, or any other x axis except time)
- fieldArrays : list of float arrays
y array (any field as function of x)
- errArrays : list of float arrays
error array (y errors)
- lineColors, lineStyles, markers, legendText : list of str, optional
control line color, style, marker, and corresponding legend text. Default is black, solid line with no marker, and no legend.
- lineWidths : list of float, optional
control line width. Default is 1.0.
- title : str, optional
title of plot
- xlabel, ylabel : str, optional
label of x- and y-axis
- fileout : str, optional
the file name to be written
- figsize : tuple of float, optional
size of the figure in inches
- dpi : int, optional
the number of dots per inch of the figure, taken from section
plot
optiondpi
in the config file by default- xLim : float array, optional
x range of plot
- yLim : float array, optional
y range of plot
- invertYAxis : logical, optional
if True, invert Y axis