How do I correctly use date2num for matplotlib? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I correctly use date2num for matplotlib?

I am trying to make a graph that takes x and y from a log file. The x strings are datetimes (Y-MM-DD-H-M). Matplotlib needs to convert them with matplotlib.date How do I use date2num correctly? What do I need as arguments? Thanks in advanced

14th Oct 2018, 8:11 PM
Artjom V
Artjom V - avatar
1 Answer
+ 2
https://code.sololearn.com/cqa91rs1BaA3/?ref=app I can’t test it, but I believe this is everything you need to have to use matplotlib. It’s at the bottom of the code
23rd Nov 2018, 5:41 AM
Pete Cowling
Pete Cowling - avatar