beautifulplots.lineplot

Module Contents

Functions

lineplot(df, x, y, y2=None, ax=None, test_mode=False, estimator=None, estimator2=None, **kwargs)

Lineplot function designed for ease of use and aesthetics. Based on the

beautifulplots.lineplot.lineplot(df, x, y, y2=None, ax=None, test_mode=False, estimator=None, estimator2=None, **kwargs)[source]

Lineplot function designed for ease of use and aesthetics. Based on the Seaborn lineplot, with additions such as secondary axis, ease of use, and improved default parameters. Refer to beautiful plot_defaults for full list of options.

Parameters
  • df (Dataframe) – The input DataFrame containing colums corresponding to x and y

  • x – Dataframe column corresponding to the lineplot x-axis aldfsd;lfj

  • y – Dolumn or list of columns corresponding to the lineplot y-axis

  • y2 – Column or list of columns correspondng to the secondary axis, default = None

  • yaxisformat – default = “1.2f”

  • ycurrency – default = None. Primary y-axis. For example = “$” to prepend dollar symbol.

  • y2currency – default = None. Secondary y-axis. For example = “$” to prepend dollar symbol.

  • marker – default = None. Primary y-axis. Matplotlib line marker. If y is a list, then marker must be a list of markers.

  • marker2 – default = None. Secondary y-axis. Matplotlib line marker. If y2 is a list, then marker2 must be a list of markers.

  • estimator – Specifies how to summarize data corresponding to y-axis. Defaults to plot all data points do not summarize.

  • estimator2 – Specifies how to summarize data corresponding to y2-axis. Defaults to plot all data points do not summarize.

Returns

returns None if processing completes succesfully (without errors).