Skip to content

Commit 4da11d6

Browse files
committed
Removed obsolete and broken methods from Axes and PolarAxes
svn path=/trunk/matplotlib/; revision=3821
1 parent c7a21c5 commit 4da11d6

File tree

1 file changed

+9
-58
lines changed

1 file changed

+9
-58
lines changed

lib/matplotlib/axes.py

Lines changed: 9 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,31 +1864,6 @@ def set_cursor_props(self, *args):
18641864
c =mcolors.colorConverter.to_rgba(c)
18651865
self._cursorProps = lw, c
18661866

1867-
1868-
def panx(self, numsteps):
1869-
'Pan the x axis numsteps (plus pan right, minus pan left)'
1870-
self.xaxis.pan(numsteps)
1871-
xmin, xmax = self.viewLim.intervalx().get_bounds()
1872-
self._send_xlim_event()
1873-
1874-
def pany(self, numsteps):
1875-
'Pan the x axis numsteps (plus pan up, minus pan down)'
1876-
self.yaxis.pan(numsteps)
1877-
self._send_ylim_event()
1878-
1879-
def zoomx(self, numsteps):
1880-
'Zoom in on the x xaxis numsteps (plus for zoom in, minus for zoom out)'
1881-
self.xaxis.zoom(numsteps)
1882-
xmin, xmax = self.viewLim.intervalx().get_bounds()
1883-
self._send_xlim_event()
1884-
1885-
def zoomy(self, numsteps):
1886-
'Zoom in on the x xaxis numsteps (plus for zoom in, minus for zoom out)'
1887-
self.yaxis.zoom(numsteps)
1888-
self._send_ylim_event()
1889-
1890-
1891-
18921867
def connect(self, s, func):
18931868
"""
18941869
Register observers to be notified when certain events occur. Register
@@ -1910,6 +1885,7 @@ def connect(self, s, func):
19101885
def disconnect(self, cid):
19111886
'disconnect from the Axes event.'
19121887
raise DeprecationWarning('use the callbacks CallbackRegistry instance instead')
1888+
19131889
def get_children(self):
19141890
'return a list of child artists'
19151891
children = []
@@ -5678,37 +5654,13 @@ def set_ylabel(self, ylabel, fontdict=None, **kwargs):
56785654
'ylabel not implemented'
56795655
raise NotImplementedError('ylabel not defined for polar axes (yet)')
56805656

5657+
def set_xlim(self, xmin=None, xmax=None, emit=True, **kwargs):
5658+
'xlim not implemented'
5659+
raise NotImplementedError('xlim not meaningful for polar axes')
56815660

5682-
def set_xlim(self, xmin=None, xmax=None, emit=True):
5683-
"""
5684-
set the xlimits
5685-
ACCEPTS: len(2) sequence of floats
5686-
"""
5687-
if xmax is None and iterable(xmin):
5688-
xmin,xmax = xmin
5689-
5690-
old_xmin,old_xmax = self.get_xlim()
5691-
if xmin is None: xmin = old_xmin
5692-
if xmax is None: xmax = old_xmax
5693-
5694-
self.viewLim.intervalx().set_bounds(xmin, xmax)
5695-
if emit: self._send_xlim_event()
5696-
5697-
5698-
def set_ylim(self, ymin=None, ymax=None, emit=True):
5699-
"""
5700-
set the ylimits
5701-
ACCEPTS: len(2) sequence of floats
5702-
"""
5703-
if ymax is None and iterable(ymin):
5704-
ymin,ymax = ymin
5705-
5706-
old_ymin,old_ymax = self.get_ylim()
5707-
if ymin is None: ymin = old_ymin
5708-
if ymax is None: ymax = old_ymax
5709-
5710-
self.viewLim.intervaly().set_bounds(ymin, ymax)
5711-
if emit: self._send_ylim_event()
5661+
def set_ylim(self, ymin=None, ymax=None, emit=True, **kwargs):
5662+
'ylim not implemented'
5663+
raise NotImplementedError('ylim not meaningful for polar axes')
57125664

57135665
def get_xscale(self):
57145666
'return the xaxis scale string'
@@ -5760,10 +5712,9 @@ def __init__(self, fig, *args, **kwargs):
57605712
"""
57615713
# this is some discarded code I was using to find the minimum positive
57625714
# data point for some log scaling fixes. I realized there was a
5763-
# cleaner way to do it, but am ke
5764-
eping this around as an example for
5715+
# cleaner way to do it, but am keeping this around as an example for
57655716
# how to get the data out of the axes. Might want to make something
5766-
# like this a method one day, or better yet make get_verts and Artist
5717+
# like this a method one day, or better yet make get_verts an Artist
57675718
# method
57685719
57695720
minx, maxx = self.get_xlim()

0 commit comments

Comments
 (0)