projects
/
matplotlib-cdsw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add another, more complicated plotting example.
[matplotlib-cdsw]
/
001-hello-plot.py
diff --git
a/001-hello-plot.py
b/001-hello-plot.py
index ef749ff3b65051599c94c03e816e2e80c9dfd600..227b56cdd079ce3caa21f19c87bb8096b71759da 100644
(file)
--- a/
001-hello-plot.py
+++ b/
001-hello-plot.py
@@
-7,7
+7,7
@@
A first plot with matplotlib
"""
import matplotlib.pyplot as plt
-figure = plt.figure()
-axis = figure.add_subplot(111)
+figure, axis = plt.subplots(1)
plt.plot([1,2,3], [1,2,3])
plt.show()
+
Benjamin Mako Hill
||
Want to submit a patch?