-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Matplotlib colorbar moves second x axis drawn with twiny #5904
Copy link
Copy link
Closed
Labels
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!status: has patchpatch suggested, PR still neededpatch suggested, PR still needed
Metadata
Metadata
Assignees
Labels
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!status: has patchpatch suggested, PR still neededpatch suggested, PR still needed
Bug report originated in SO post here: http://stackoverflow.com/q/34979781/1391441
I'm trying to add a second x axis to the top of a plot using twiny.
If I make a simple scatter plot with no colorbar, the top x axis is correctly aligned with the bottom x axis (MWE is below):
If I add a colorbar though, the top x axis is displaced:
MWE