Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e77f12c

Browse files
committed
made requested changes
1 parent d35ebe6 commit e77f12c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/pylab_examples/logo.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# This file generates the matplotlib web page logo
1+
# This file generates an old version of the matplotlib logo
22

3-
# from __future__ import print_function
3+
from __future__ import print_function
44
# Above import not necessary for Python 3 onwards. Recommend taking this
5-
# out in all examples.
5+
# out in examples in the future, since we should all move to Python 3.
66
import matplotlib.pyplot as plt
77
import numpy as np
88
import matplotlib.cbook as cbook
@@ -24,7 +24,7 @@
2424
transform=ax.transAxes,
2525
)
2626
plt.axis([1, 1.72, -60, 10])
27-
plt.setp(plt.gca(), 'xticklabels', [])
28-
plt.setp(plt.gca(), 'yticklabels', [])
27+
plt.gca().set_xticklabels([])
28+
plt.gca().set_yticklabels([])
2929

3030
plt.show()

0 commit comments

Comments
 (0)