We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d35ebe6 commit e77f12cCopy full SHA for e77f12c
examples/pylab_examples/logo.py
@@ -1,8 +1,8 @@
1
-# This file generates the matplotlib web page logo
+# This file generates an old version of the matplotlib logo
2
3
-# from __future__ import print_function
+from __future__ import print_function
4
# Above import not necessary for Python 3 onwards. Recommend taking this
5
-# out in all examples.
+# out in examples in the future, since we should all move to Python 3.
6
import matplotlib.pyplot as plt
7
import numpy as np
8
import matplotlib.cbook as cbook
@@ -24,7 +24,7 @@
24
transform=ax.transAxes,
25
)
26
plt.axis([1, 1.72, -60, 10])
27
-plt.setp(plt.gca(), 'xticklabels', [])
28
-plt.setp(plt.gca(), 'yticklabels', [])
+plt.gca().set_xticklabels([])
+plt.gca().set_yticklabels([])
29
30
plt.show()
0 commit comments