captest.plotting.plot

captest.plotting.plot(cd=None, cg=None, data=None, combine={'ghi_csky': '(?=.*ghi)(?=.*irr)', 'inv_sum_mtr_pwr': ['(?=.*real)(?=.*pwr)(?=.*mtr)', '(?=.*pwr)(?=.*agg)'], 'poa_csky': '(?=.*poa)(?=.*irr)', 'poa_ghi': 'irr.*(poa|ghi)$', 'temp_amb_bom': '(?=.*temp)((?=.*amb)|(?=.*bom))'}, default_groups=['inv_sum_mtr_pwr', '(?=.*real)(?=.*pwr)(?=.*inv)', '(?=.*real)(?=.*pwr)(?=.*mtr)', 'poa_ghi', 'poa_csky', 'ghi_csky', 'temp_amb_bom'], group_width=1500, group_height=250, plot_defaults_path=None, **kwargs)

Create plotting dashboard.

NOTE: If a plot defaults JSON file exists in the current working directory, the default groups will be read from that file instead of using the default_groups argument. When a cd (CapData) object is provided, the file is named plot_defaults_{cd.name}.json to avoid conflicts between multiple CapData objects in the same session. Otherwise the file is named plot_defaults.json. Use the plot_defaults_path argument to override the path. Delete or manually edit the file to change the default groups. Columns in the file that are no longer present in the data are ignored with a warning.

Parameters:
  • cd (captest.CapData, optional) – The captest.CapData object.

  • cg (captest.ColumnGroups, optional) – The captest.ColumnGroups object. data must also be provided.

  • data (pd.DataFrame, optional) – The data to plot. cg must also be provided.

  • combine (dict, optional) – Dictionary of group names and regex strings to use to identify groups from column groups and individual tags (columns) to combine into new groups. See the parse_combine function for more details.

  • default_groups (list of str, optional) – List of regex strings to use to identify default groups to plot. See the find_default_groups function for more details.

  • group_width (int, optional) – The width of the plots on the Groups tab.

  • group_height (int, optional) – The height of the plots on the Groups tab.

  • plot_defaults_path (str or Path, optional) – Path to the plot defaults JSON file. Overrides the default naming scheme. When None and cd is provided, defaults to ./plot_defaults_{cd.name}.json. When None and cd is not provided, defaults to ./plot_defaults.json.

  • **kwargs (optional) – Pass additional keyword arguments to the holoviews options of the scatter plot on the ‘Scatter’ tab.