lib5c.plotters.scatter module¶
Module for plotting scatterplots of x-y graphs.
-
lib5c.plotters.scatter.
scatter
(x, y, logx=True, logy=True, hexbin=True, xlim=None, ylim=None, **kwargs)[source]¶ Plots a scatterplot of data, either as a scatterplot or a hexbin plot.
- Parameters
y (x,) – The data points.
logy (logx,) – Log the x- and/or y-axis.
hexbin (bool) – Pass True to plot a hexbin plot instead of a scatterplot.
kwargs (kwargs) – Typical plotter kwargs.
- Returns
The axis plotted on.
- Return type
pyplot axis
Notes
If both xlim and ylim are passed as kwargs and hexbin=True, this function will attempt to set the extent of the hexbin plot using the xlim and ylim.