Skip to content

Commit

Permalink
Update plot imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Deigoodle committed Feb 12, 2024
1 parent 0059788 commit 6d3520b
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 5 deletions.
Binary file modified docs/img/agp_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/box_plot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/box_plot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/box_plot_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/fourier_plot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/fourier_plot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/mage_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/mean_plot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/mean_plot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/per_day_plot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/per_day_plot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/tir_plot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/tir_plot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion glucopy/plot/box.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def box(gf: Gframe,

else:
fig = px.box(gf.data, x='CGM', points=points)
fig.update_xaxes(title='Glucose')
fig.update_xaxes(title=f'Glucose [{gf.unit}]')

fig.update_layout(height=height, width=width)

Expand Down
2 changes: 1 addition & 1 deletion glucopy/plot/trace/mage.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def mage(gf: Gframe,
# update layout
fig.update_layout(
xaxis_title='Time of day [h]',
yaxis_title=f'CGM [{gf.unit}]',
yaxis_title=f'Glucose [{gf.unit}]',
yaxis=dict(range=[0, gf.data['CGM'].max()+10]), # Set y-axis to start at 0 and end at the max value
height=height,
width=width,
Expand Down
2 changes: 1 addition & 1 deletion glucopy/plot/trace/mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def mean(gf: Gframe,
# update lauyout
fig.update_layout(title_text='Mean and standard deviation for each time',
xaxis_title='Time of day [h]',
yaxis_title=f'CGM [{gf.unit}]',
yaxis_title=f'Glucose [{gf.unit}]',
height=height,
width=width)

Expand Down
4 changes: 2 additions & 2 deletions glucopy/plot/trace/tir.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ def tir(gf: Gframe,
# update layout
fig.update_layout(
xaxis_title='Time of day [h]',
yaxis_title=f'CGM [{gf.unit}]',
yaxis_title=f'Glucose [{gf.unit}]',
yaxis=dict(range=[0, gf.data['CGM'].max()+10]), # Set y-axis to start at 0 and end at the max value
height=height,
width=width,
title_text='CGM values for each day',
title_text='Glucose values in range for each day',
shapes=shapes[first_day]
)

Expand Down

0 comments on commit 6d3520b

Please sign in to comment.