rcatool.plot.plots.make_scatter_plot

rcatool.plot.plots.make_scatter_plot(grid, xdata, ydata, sdata=None, fcolors=None, ecolors=None, lbl_fontsize='large', axis_type='linear', labels=None, **sc_kwargs)[source]

Create a scatter plot

Parameters:
  • grid (AxesGrid object) – returned from the ‘fig_grid_setup’ function

  • xdata/ydata (Array/list) – 1D array or list of 1D arrays with data for x/y axis

  • fcolors (array/list) – List of colors to be used for each data set in input data. This is separate from ‘color’/’c’ option available from matplotlib.scatter call (and set in sc_kwargs) where all individual input data sets will have that specific color/s. If set, then ecolors need also be supplied.

  • ecolors (array/list) – List of edge colors to be used for each data set in input data. This is separate from ‘edgecolors’/’ec’ option available from matplotlib.scatter call (and set in sc_kwargs) where all individual input data sets will have that specific color/s. If set, then fcolors need also be supplied.

  • lbl_fontsize (string/float) – Fontsize for legend labels

  • axis_type (str) – Linear or log axes: ‘linear’ (defualt), ‘logx’/’logy’/’logxy’ (log x, y or both axes).

  • labels (String/List) – String or list of strings with legend labels

  • **sc_kwargs (keyword arguments) – arguments (key=value) that can be used in pyplot.scatter See matplotlib.org for more information

Returns:

axs – The axes objects created for each plot

Return type:

Axes objects