generate_plot_sub_data

generate_plot_sub_data(raw_data: pandas.core.frame.DataFrame, region: str, subset: str, color: str, hide_raw_data: bool = False, fit_data: pandas.core.frame.DataFrame = None) → List[Dict][source]

Function to generate the data used to plot raw data and/or its fit

Parameters
  • raw_data (pd.DataFrame) – Actual case data

  • 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

  • hide_raw_data (bool, optional) – Whether or not to hide the raw data, by default False

  • fit_data (pd.DataFrame, optional) – Data used to plot a fit, by default None

Returns

List of traces which should be ploted

Return type

List[Dict]