create_trace¶
-
create_trace
(data: pandas.core.frame.DataFrame, region: str, subset: str, color: str, is_fit: bool = False) → Dict[source]¶ Function to generate the Plot trace of a single dataset, with the appropriate style (raw data -> marker, fit -> line)
- Parameters
data (pd.DataFrame) – Data which should be plotted
region (str) – region name of the data, needed to generate the legend
subset (str) – subset name of the data, needed to generate the legend
color (str) – color of the trace, needed so raw data and fits have the same color
is_fit (bool, optional) – Whether or not the data are from a fit, by default False
- Returns
Trace data to generate a plot with dash
- Return type
Dict