metaclean3.plot

Module Contents

Functions

plot_scat(x, y[, L, plot_title, fig_size, dot_size, ...])

Plots and saves a scatterplot.

metaclean3.plot.plot_scat(x, y, L=None, plot_title: str = 'Scatterplot', fig_size: tuple = (16, 8), dot_size: float = 3, out_path: str = str(pathlib.Path().resolve()) + '/temp.png')

Plots and saves a scatterplot.

Args:

x (list | numpy.array | pandas.Series): x axis values. y (list | numpy.array | pandas.Series): y axis values. L (list | numpy.array | pandas.Series | None, optional): Category label for

each value. If set to None, there will be only one category. Defaults to None.

plot_title (str, optional): Plot title. Defaults to ‘Scatterplot’. fig_size (tuple, optional): Plot width and height. Defaults to (16, 8). dot_size (float, optional): Scatterplot point/dot size. Defaults to 3. out_path (str, optional): Path to save plot.

Defaults to str(pathlib.Path().resolve())+’/temp.png’.

Returns:

None: Function does not return anything, it saves plot to file.