captest.CapTest.scatter_plots
- CapTest.scatter_plots(which='meas', **kwargs)
Create the scatter plot for the active capacity-test setup.
This method is intended primarily to plot a power vs irradiance scatter plot that fits with a preset capacity test from the
TEST_SETUPSdefined in thecaptestmodule.To create manual scatter plots and to see the complete list of accepted kwargs and their behavior, see the docstrings for
captest.plotting.ScatterPlotandcaptest.plotting.ScatterBifiPowerTc.ScatterBifiPowerTcinherits most options fromScatterPlotbut ignorestc_powerbecause thebifi_power_tcregression power term is already temperature corrected.The selected
test_setupcontrols which plotting function is used. Duringsetup(), the named setup is resolved fromTEST_SETUPS; that resolved setup includes ascatter_plotscallable matched to the setup’s regression formula. This method picksself.measorself.simand forwards it, plus any keyword arguments, to that callable.Built-in setup behavior:
e2848_default,bifi_e2848_etotal, ande2848_spec_corrected_poauseScatterPlotthrough thescatter_default/scatter_etotalwrappers. These create a formula-driven scatter of the regression left-hand-side variable against the first right-hand-side variable.bifi_power_tcusesScatterBifiPowerTcthrough thescatter_bifi_power_tcwrapper. This creates one panel for each right-hand-side variable in the bifacial temperature-corrected regression, typicallypower vs poaandpower vs rpoa.
All keyword arguments are forwarded to the underlying plotting class. The most commonly used options are:
filtered: usedata_filteredwhen True, otherwisedata.split_dayandsplit_time: split points into AM and PM groups.am_color,pm_color,am_marker, andpm_marker: customize AM / PM glyph style.tc_power,tc_mode,tc_power_calc, andtc_force_recompute: show temperature-corrected power for setups whose regression still uses raw power.tc_modecan be"replace","add_panel", or"overlay".timeseries: add a linked timeseries panel below the scatter.heightandwidth: set plot dimensions.
- Parameters:
which ({'meas', 'sim'}) – Which
captest.capdata.CapDatainstance to plot.**kwargs – Plotting options forwarded to the preset’s scatter callable.
- Returns:
Scatter plot layout for the selected measured or modeled data.
- Return type:
holoviews.Layout
Examples
Plot measured data with the default options:
ct.scatter_plots()
Plot modeled data, split points into AM and PM groups, and add a linked timeseries panel:
ct.scatter_plots(which="sim", split_day=True, timeseries=True)
Add a temperature-corrected power panel for a setup that uses raw power in the regression:
ct.scatter_plots(tc_power=True, tc_mode="add_panel")