slitflow.fig.scatter module

class Simple(info_path=None)[source]

Bases: Figure

Scatter plot of columns from a Table.

Parameters:
  • reqs[0] (Table) – Table containing X and Y axes to create Figure.

  • param["calc_cols"] (list of str) – Column names for X and Y axes.

  • param["marker_styles"] (str or list of str, optional) – Marker style of each group. Defaults to “o”.

  • param["group_depth"] (int) – Data split depth number.

Returns:

matplotlib Figure object

Return type:

Figure

set_info(param={})[source]

Copy info from reqs[0] and add params.

static process(reqs, param)[source]

Scatter plot of columns from a table.

Parameters:
  • reqs[0] (pandas.DataFrame) – Table containing X and Y axes to create figure.

  • param["calc_cols"] (list of str) – Column names for X and Y axes.

  • param["marker_styles"] (str or list of str, optional) – Marker style of each group. Defaults to “o”.

  • param["index_cols"] (list of str) – Column names of index. These column names are used for pandas.DataFrame.groupby().

Returns:

matplotlib Figure containing scatter plot

Return type:

matplotlib.figure.Figure