glucopy.plot.periodogram#

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

Plot the best-fit curve obtained by a Lomb-Scargle periodogram.

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 best-fit curve obtained by a Lomb-Scargle periodogram per day

In [1]: import glucopy as gp

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

In [3]: gp.plot.periodogram(gf)
Out[3]: 
Periodogram plot per day

Plot the best-fit curve obtained by a Lomb-Scargle periodogram for the entire dataset

In [4]: fig = gp.plot.periodogram(gf, per_day=False)
Periodogram plot