8000 resize_event not working with MacOSX backend by astrofrog · Pull Request #5043 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

resize_event not working with MacOSX backend #5043

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
Sep 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix missing call to FigureCanvasBase.resize_event which caused resize…
…_events to not work in MacOSX backend (fix suggested by @mdehoon)
  • Loading branch information
astrofrog committed Sep 10, 2015
commit ee1946ebc9ea42411a60fb2c7b82158458c508cc
1 change: 1 addition & 0 deletions lib/matplotlib/backends/backend_macosx.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def resize(self, width, height):
width /= dpi
height /= dpi
self.figure.set_size_inches(width, height)
FigureCanvasBase.resize_event(self)

def _print_bitmap(self, filename, *args, **kwargs):
# In backend_bases.py, print_figure changes the dpi of the figure.
Expand Down
0