plot_scatter

sitelle.plot.plot_scatter(x, y, ax=None, **kwargs)

Helper function to plot scattered data

Parameters:
  • x (1D ndarray) – X coordinates of the data
  • y (1D ndarray) – Y coordinates of the data
  • ax (Axes) – (Optional) The matplotlib axes on which to plot. If None, a new one will be created.
  • label (str) – (Optional) labels of the data, to be displayed in the legend.
  • color (str, Default = 'red') – color of the markers
  • marker (str, Default = '+') – Style of marker to use
  • kwargs (dict) – any keyword argument accepted by matplotlib.pyplot.scatter()
Returns:

  • fig (Figure) – The figure containing the plot.
  • ax (Axes) – The axes containing the plot.