pyrad.graph.plot_scatter_comp#

pyrad.graph.plot_scatter_comp(values, fname_list, labelx='Sensor 1', labely=None, titl='Scatter', axis=None, metadata=None, dpi=72, ax=None, fig=None, save_fig=True, labels=None, write_stats=True, alpha=0.5, markersize=20)[source]#

Plot scatter comparisons of multiple arrays against the first array.

Parameters:
  • values (list of array-like) – List of arrays. The first array is used as x, and all others are plotted against it as y.

  • fname_list (list of str) – List of names of the files where to store the plot.

  • labelx (str) – Label of the X axis.

  • labely (str or None) – Label of the Y axis. If None, defaults to “Estimated values”.

  • titl (str) – Figure title.

  • axis (str) – Type of axis. If “equal”, enforce equal axis limits and draw 1:1 line.

  • metadata (str) – A string containing metadata.

  • dpi (int) – Dots per inch.

  • fig (Figure) – Figure to plot on. If None, a new figure will be created.

  • ax (Axis) – Axis to plot on. If fig is None, a new axis will be created.

  • save_fig (bool) – If True save the figure. If False, return figure and axis handles.

  • labels (list of str or None) – Labels for arrays 2..N. Length must be len(values)-1 if provided.

  • write_stats (bool) – If True, write stats for each series on the plot.

  • alpha (float) – Transparency of scatter points.

  • markersize (float) – Scatter marker size.

Returns:

  • fname_list (list of str) – List of names of the created plots, if save_fig is True.

  • or

  • (fig, ax) (tuple) – Figure and axis handles, if save_fig is False.