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

Skip to content

Commit bf7fec9

Browse files
committed
removed original_view and cleaned up dead code.
1 parent 002ebca commit bf7fec9

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3300,7 +3300,7 @@ def _set_view(self, view):
33003300
self.set_xlim((xmin, xmax))
33013301
self.set_ylim((ymin, ymax))
33023302

3303-
def _set_view_from_bbox(self, bbox, original_view=None, direction='in',
3303+
def _set_view_from_bbox(self, bbox, direction='in',
33043304
mode=None, twinx=False, twiny=False):
33053305
"""
33063306
Update view from a selection bbox.
@@ -3316,11 +3316,6 @@ def _set_view_from_bbox(self, bbox, original_view=None, direction='in',
33163316
bbox : tuple
33173317
The selected bounding box limits, in *display* coordinates.
33183318
3319-
original_view : any
3320-
A view saved from before initiating the selection, the result of
3321-
calling :meth:`_get_view`. If set to None, _get_view will be called
3322-
to obtain current view state.
3323-
33243319
direction : str
33253320
The direction to apply the bounding box.
33263321
* `'in'` - The bounding box describes the view directly, i.e.,
@@ -3348,11 +3343,6 @@ def _set_view_from_bbox(self, bbox, original_view=None, direction='in',
33483343
Xmin, Xmax = self.get_xlim()
33493344
Ymin, Ymax = self.get_ylim()
33503345

3351-
if original_view is not None:
3352-
x0, x1, y0, y1 = original_view
3353-
else:
3354-
x0, x1, y0, y1 = Xmin, Xmax, Ymin, Ymax
3355-
33563346
if twinx:
33573347
x0, x1 = Xmin, Xmax
33583348
else:

0 commit comments

Comments
 (0)