-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
aspect='equal' ignored when parasitic axis added with twinx/twiny #7654
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesstatus: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.Issues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Action
Milestone
Metadata
Metadata
Assignees
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesstatus: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.Issues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Action
Consider an axis with equal aspect ratio
Adding a parasitic axis with
twinx()causes the plot to completely ignoreaspect='equal'Creating the primary axis with the keyword argument
adjustable='box-forced'causes it to obeyaspect='equal'but the parasitic axis does not.Interestingly, everything works if the primary axis is created with
host_subplot(noteadjustable='box-forced'is still required). However, it seems to be prone to a similar issue to #7648 iffigure.autolayoutis setPlatform: Windows 7
matplotlib: 1.5.3
python: 2.7.12