Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mathplolib avec date

import matplotlib.pyplot as plt
 
data = [49, 20, 37, 28, 20]
jours = ["14/02/2016", "15/02/2016", "17/02/22016", "28/05/2016", "15/07/2016"]
 
plt.plot(data)  #1 seul argument: 'data'
plt.xticks(range(len(data)), jours, rotation=45)
plt.show()
Source by openclassrooms.com #
 
PREVIOUS NEXT
Tagged: #mathplolib #avec #date
ADD COMMENT
Topic
Name
2+9 =