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

Skip to content

Commit b8fc240

Browse files
committed
Removing redundant cla() method. (Thanks Tony Yu).
svn path=/trunk/matplotlib/; revision=5617
1 parent 424adc1 commit b8fc240

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

examples/api/custom_projection_example.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,6 @@ def cla(self):
6363
Axes.set_xlim(self, -np.pi, np.pi)
6464
Axes.set_ylim(self, -np.pi / 2.0, np.pi / 2.0)
6565

66-
def cla(self):
67-
"""
68-
Initialize the Axes object to reasonable defaults.
69-
"""
70-
Axes.cla(self)
71-
72-
self.set_longitude_grid(30)
73-
self.set_latitude_grid(15)
74-
self.set_longitude_grid_ends(75)
75-
self.xaxis.set_minor_locator(NullLocator())
76-
self.yaxis.set_minor_locator(NullLocator())
77-
self.xaxis.set_ticks_position('none')
78-
self.yaxis.set_ticks_position('none')
79-
80-
# self.grid(rcParams['axes.grid'])
81-
82-
Axes.set_xlim(self, -np.pi, np.pi)
83-
Axes.set_ylim(self, -np.pi / 2.0, np.pi / 2.0)
84-
8566
def _set_lim_and_transforms(self):
8667
"""
8768
This is called once when the plot is created to set up all the

0 commit comments

Comments
 (0)