-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[Bug]: aspect ratio control of colorbar Axes fails. #22087
Copy link
Copy link
Closed as not planned
Labels
status: 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 Actiontopic: color/colorbar
Milestone
Metadata
Metadata
Assignees
Labels
status: 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 Actiontopic: color/colorbar
Bug summary
Previously, a colorbar axes could be created with a specified aspect ratio and adjustable "box". Now it leaves whitespace either at the ends or on the sides.
Code for reproduction
Actual outcome
Expected outcome
E.g., using mpl 3.4.3:

Additional information
The result is even worse with 3.5.0: the first 2 colorbars in the example are blank except for the triangles.
Operating system
OS/X
Matplotlib Version
3.5.1
Matplotlib Backend
No response
Python version
3.7.12
Jupyter version
No response
Installation
conda