projects
/
matplotlib-cdsw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added some challenges to the HP analysis.
[matplotlib-cdsw]
/
001-hello-plot.py
diff --git
a/001-hello-plot.py
b/001-hello-plot.py
index ef749ff3b65051599c94c03e816e2e80c9dfd600..06904708e84e353b2a2366e5ba283685ed693375 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)
-plt.plot([1,2,3], [1,2,3])
+figure, axis = plt.subplots(1)
+plt.plot([1,2,3], [2,4,8])
plt.show()
+
Benjamin Mako Hill
||
Want to submit a patch?