Skip to content

Commit 6db4e8d

Browse files
authored
Merge pull request #25049 from meeseeksmachine/auto-backport-of-pr-25047-on-v3.7.x
Backport PR #25047 on branch v3.7.x (Remove dead code from deprecated-and-removed block)
2 parents 5d16868 + 2273b6b commit 6db4e8d

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)