Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions basicExampleMatplotlib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#Usage 'as plt' is a convention
import matplotlib.pyplot as plt

year = [2000, 2005, 2010]

population = [7.823, 7.965, 8.012]

#Create a plot graph with abscissas and ordenate
plt.plot(population, year)

#add the values on abscissas and ordenate
plt.xlabel('Population')
plt.ylabel('Years')

#Setting a title to the graph
plt.title('Graphs Population x Years')

#showing the graph
plt.show()