Skip to content

Fixes an issue where WxAgg NavigationToolbar2 broke custom toolbars #18219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

jbhopkins
Copy link
Contributor

PR Summary

Fixes the issue in #18212 where the new coordinate readout in the WxAgg toolbar would lead to improper formatting when the toolbar was customized with additional buttons/widgets. To do so, this adds an optional coordinates keyword argument to the NavigationToolbar2Wx that if True (default) shows the coordinate display and if False removes it.

Buggy behavior (shows additional button on right):
Screen Shot 2020-08-11 at 11 50 09 AM

Fixed behavior with coordinates=False (shows additional button at the end of the standard buttons):
Screen Shot 2020-08-11 at 11 50 30 AM

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way

…vigationToolbar2 would end up with buttons in the wrong place.
Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I didn't really test it.

@QuLogic QuLogic added this to the v3.3.1 milestone Aug 11, 2020
@QuLogic QuLogic linked an issue Aug 11, 2020 that may be closed by this pull request
@dopplershift dopplershift merged commit 6062ff6 into matplotlib:master Aug 12, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 12, 2020
dopplershift added a commit that referenced this pull request Aug 12, 2020
…219-on-v3.3.x

Backport PR #18219 on branch v3.3.x (Fixes an issue where WxAgg NavigationToolbar2 broke custom toolbars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updated WxAgg NavigationToolbar2 breaks custom toolbars
3 participants