captest.capdata.CapData.plot
- CapData.plot(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'], width=1500, height=250, plot_defaults_path=None, **kwargs)
Create a dashboard to explore timeseries plots of the data.
The dashboard contains three tabs: Groups, Layout, and Overlay. The first tab, Groups, presents a column of plots with a separate plot overlaying the measurements for each group of the column_groups. The groups plotted are defined by the default_groups argument.
The second tab, Layout, allows manually selecting groups to plot. The button on this tab can be used to replace the column of plots on the Groups tab with the current figure on the Layout tab. Rerun this method after clicking the button to see the new plots in the Groups tab.
The third tab, Overlay, allows picking a group or any combination of individual tags to overlay on a single plot. The list of groups and tags can be filtered using regular expressions. Adding a text id in the box and clicking Update will add the current overlay to the list of groups on the Layout tab.
NOTE: If a plot defaults JSON file exists in the current working directory, the default groups will be read from that file. The file is named
plot_defaults_{self.name}.jsonto avoid conflicts when multiple CapData objects are used in the same session. Columns in the file that are no longer present in the data are ignored with a warning.- Parameters:
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 plotting.find_default_groups function for more details.
width (int, optional) – The width of the plots on the Groups tab.
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, defaults to
./plot_defaults_{self.name}.json.**kwargs (optional) – Additional keyword arguments are passed to the options of the scatter plot.
- Return type:
Panel tabbed layout