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

Skip to content

Commit e80787e

Browse files
committed
Add blank set_aspect
1 parent 4fdb2a9 commit e80787e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/matplotlib/axes/_secondary_axes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import numpy as np
33
import numbers
44

5+
import warnings
6+
57
import matplotlib.ticker as mticker
68
import matplotlib.transforms as mtransforms
79

@@ -233,6 +235,11 @@ def get_tightbbox(self, renderer, call_axes_locator=True):
233235

234236
return _bbox
235237

238+
def set_aspect(self, *args, **kwargs):
239+
"""
240+
"""
241+
warnings.warn("Secondary axes can't set the aspect ratio")
242+
236243

237244
class Secondary_Yaxis(_AxesBase):
238245
"""
@@ -431,3 +438,8 @@ def get_tightbbox(self, renderer, call_axes_locator=True):
431438
[b for b in bb if b.width != 0 or b.height != 0])
432439

433440
return _bbox
441+
442+
def set_aspect(self, *args, **kwargs):
443+
"""
444+
"""
445+
warnings.warn("Secondary axes can't set the aspect ratio")

0 commit comments

Comments
 (0)