glucopy.plot.roc#

glucopy.plot.roc(gf: Gframe, per_day: bool = True, height: float = None, width: float = None)[source]#

Plots a histogram of the Glucose rate of change

Parameters:
  • gf (Gframe) – Gframe object to plot

  • per_day (bool, default True) – If True, the plot will be separated by days

  • height (float, default None) – Height of the figure

  • width (float, default None) – Width of the figure

Returns:

fig – Figure object

Return type:

plotly.graph_objects.Figure

Examples

Plot the glucose rate of change per day (default), and clicking on the second day on the dropdown menu

In [1]: import glucopy as gp

In [2]: gf = gp.data()

In [3]: gp.plot.roc(gf)
Out[3]: 
Rate of change histogram per day

Plot the glucose rate of change for the entire dataset

In [4]: gp.plot.roc(gf, per_day=False)
Out[4]: 
Rate of change histogram