diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index e49c33fe0c3e..d3166612c009 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1496,8 +1496,9 @@ def apply_aspect(self, position=None): fig_aspect = figH / figW if self._adjustable in ['box', 'box-forced']: if self in self._twinned_axes: - raise RuntimeError("Adjustable 'box' is not allowed in a" - " twinned Axes. Use 'datalim' instead.") + warnings.warn("Using adjustable 'box' on a twin Axes " + "can lead to an overcontrained system. " + "Consider using 'datalim' instead.") if aspect_scale_mode == "log": box_aspect = A * self.get_data_ratio_log() else:
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: