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

Skip to content

Commit 5428c9d

Browse files
authored
Merge pull request #25047 from QuLogic/widget-deprecation
Remove dead code from deprecated-and-removed block
2 parents 6a9a071 + 4050e5d commit 5428c9d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/matplotlib/widgets.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3344,12 +3344,6 @@ def _rect_bbox(self):
33443344

33453345
def _set_aspect_ratio_correction(self):
33463346
aspect_ratio = self.ax._get_aspect_ratio()
3347-
if not hasattr(self._selection_artist, '_aspect_ratio_correction'):
3348-
# Aspect ratio correction is not supported with deprecated
3349-
# drawtype='line'. Remove this block in matplotlib 3.7
3350-
self._aspect_ratio_correction = 1
3351-
return
3352-
33533347
self._selection_artist._aspect_ratio_correction = aspect_ratio
33543348
if self._use_data_coordinates:
33553349
self._aspect_ratio_correction = 1

0 commit comments

Comments
 (0)