Hello;
I created an application with which if I click on the button "save", there is creation of a text file in which I save data in columns. among these data there is the date in first colone
here is the contents of the file (file.txt):
01/12/2010 ... 0.132
02/05/2011 ... 0.186
28/12/2011 ... 0.168
04/06/2012 ... 0.122
29/12/2012 ... 0.144
06/06/2013 ... 0.112
07/01/2014 ... 0.186
08/06/2014 ... 0.168
19/12/2014 ... 0.152
10/06/2015 ... 0.164
this content is not fixed since each time you click on the save button a new line is added to the text file
thanks
I created an application with which if I click on the button "save", there is creation of a text file in which I save data in columns. among these data there is the date in first colone
here is the contents of the file (file.txt):
01/12/2010 ... 0.132
02/05/2011 ... 0.186
28/12/2011 ... 0.168
04/06/2012 ... 0.122
29/12/2012 ... 0.144
06/06/2013 ... 0.112
07/01/2014 ... 0.186
08/06/2014 ... 0.168
19/12/2014 ... 0.152
10/06/2015 ... 0.164
this content is not fixed since each time you click on the save button a new line is added to the text file
import numpy as np import matplotlib.pyplot as plt def graphe_loc35R(): x,y = np.loadtxt("file.txt", unpack=True) plt.plot(x,y,'o') plt.xlabel('date') plt.ylabel('ddm') plt.show()I would like help to find out how to include characters in the x-axis of a diagram built with matpltlib
thanks