From 02454d7e6f23c6fd8fd6f7e99f4e78324d716220 Mon Sep 17 00:00:00 2001 From: ImportanceOfBeingErnest Date: Thu, 5 Apr 2018 14:28:32 +0200 Subject: [PATCH] Allow equal aspect box on shared axes --- lib/matplotlib/axes/_base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy