glucopy.plot.mage#

glucopy.plot.mage(gf: Gframe, height: float = None, width: float = None)[source]#

Plots a line plot of the CGM values in the Gframe object separated by time in range for each day

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

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

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

Returns:

fig – Figure object

Return type:

plotly.graph_objects.Figure

Examples

Plot the MAGE, 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.mage(gf)
Out[3]: 
MAGE