Skip to content
Advertisement

python, using seaborn or plotly to show graphs for medication points over time

I’m trying to plot my heart rate and steps against when i have coffee.

The dataset is like this,

JavaScript

Where 1 is the hour i had coffee and 2 is 4 hours after and 0 is no coffee.

Currently I’m trying to plot these points out like this,

JavaScript

But this is giving me a unreadable graph like this,

enter image description here

I’d love to have this be more readable – what am i doing wrong with this library?

Advertisement

Answer

Perhaps better take matplotlib. There you can play around with the graph size and the marker and line width to optimize and adjust.

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement