Search
 
SCRIPT & CODE EXAMPLE
 

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()
Comment

PREVIOUS NEXT
Code Example
Python :: remove toggle/pandaslux 
Python :: python flatten one liner 
Python :: python newline 
Python :: tkinter how to update optionmenu contents 
Python :: matplotlib pie edge width 
Python :: python test class hashable 
Python :: login page in python flask with database 
Python :: python remove item from list 
Python :: format timedelta python 
Python :: instalar sympy en thonny 
Python :: list all placeholders python pptx 
Python :: full row visible in jupyter notebook 
Python :: feature importance plot using lasso regression 
Python :: how to stop auto log writing by other function in python 
Python :: Example code of while loop in python 
Python :: pyqt button hover color 
Python :: set index values pandas 
Python :: form field required in django views 
Python :: python os 
Python :: unpersist cache pyspark 
Python :: how to access app.config globally in flask app 
Python :: python defualt error handler 
Python :: 1d random walk in python stack exchange 
Python :: Getting the string and the regex of the matched object 
Python :: dependency inversion 
Python :: python text recognition 
Python :: The Python package manager (pip) can only be used from outside of IPython. 
Python :: regex in python 
Python :: python word encode asci 
Python :: how to loop through every character in a string 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =