Title: Image redraw problem on OSX with wx>2.9 & mpl>1.1 · Issue #3734 · matplotlib/matplotlib · GitHub
Open Graph Title: Image redraw problem on OSX with wx>2.9 & mpl>1.1 · Issue #3734 · matplotlib/matplotlib
X Title: Image redraw problem on OSX with wx>2.9 & mpl>1.1 · Issue #3734 · matplotlib/matplotlib
Description: I have seen a problem on more than one Mac running OS X 10.9.x where MPL images are not updated properly. As one example of this, when one zooms a plot, by selecting the zoom widget, the rectangle is never erased and after it is "release...
Open Graph Description: I have seen a problem on more than one Mac running OS X 10.9.x where MPL images are not updated properly. As one example of this, when one zooms a plot, by selecting the zoom widget, the rectangle ...
X Description: I have seen a problem on more than one Mac running OS X 10.9.x where MPL images are not updated properly. As one example of this, when one zooms a plot, by selecting the zoom widget, the rectangle ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3734
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Image redraw problem on OSX with wx\u003e2.9 \u0026 mpl\u003e1.1","articleBody":"I have seen a problem on more than one Mac running OS X 10.9.x where MPL images are not updated properly. As one example of this, when one zooms a plot, by selecting the zoom widget, the rectangle is never erased and after it is \"released\" the plot is never redrawn with the new limits. This happens when I embed a figure into a wx Panel, as shown in the script below. \n\nI do not see the problem with EPD (python 2.7.3, wxpython 2.8.10.1, matplotlib 1.1.0), but do with fairly recent Anaconda (python 2.7.8, wxpython 3.0.0.0, matplotlib 1.4.2) and Canopy (python 2.7.6, wxpython 2.9.2.4, matplotlib 1.3.1) dists. \n\n\n\n```\n# simple demo that fails on Mac (at least on 10.9.5) and later wx/mpl combos\n#\n# problem is that if one selects the zoom button and drags a region,\n# the rectangles never disappear and the image is not updated to\n# show the zoomed in region\n#\n# works (not quite 100%) w/EPD (python 2.7.3, wxpython 2.8.10.1, matplotlib 1.1.0)\n# fails w/Anaconda (python 2.7.8, wxpython 3.0.0.0, matplotlib 1.4.2\n# fails w/Canopy (python 2.7.6, wxpython 2.9.2.4, matplotlib 1.3.1)\n#\n\nimport sys\nimport wx\nimport wx.aui\nimport matplotlib as mpl\nfrom matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as mplCanvas\nfrom matplotlib.backends.backend_wxagg import NavigationToolbar2Wx as mplToolbar\nprint \"python: \",sys.version[:5]\nprint \"wxpython: \",wx.__version__\nprint \"matplotlib: \",mpl.__version__\n\napp = wx.PySimpleApp()\n\n# create frame with notebook\nframe = wx.Frame(None, size=(400,400)) \nwin = wx.Panel(frame)\nwin.nb = wx.aui.AuiNotebook(win)\nsizer = wx.BoxSizer(wx.VERTICAL) \nsizer.Add(win.nb, 1, wx.EXPAND)\nwin.SetSizer(sizer)\n\n# create a panel for the plot with a plot in it\ntab = wx.Panel(win.nb, id=-1)\nfigure = mpl.figure.Figure(dpi=None)\n# create a quick figure for the plot\nax = figure.gca()\nax.plot(range(10),range(10),'o-')\ncanvas = mplCanvas(tab, -1, figure) \ntoolbar = mplToolbar(canvas)\ntoolbar.Realize()\nsizer = wx.BoxSizer(wx.VERTICAL)\nsizer.Add(canvas,1,wx.EXPAND)\nsizer.Add(toolbar, 0 , wx.LEFT | wx.EXPAND)\ntab.SetSizer(sizer)\nwin.nb.AddPage(tab,'plot1') # add the panel as a notebook tab\n\nframe.Show()\napp.MainLoop()\n\n```\n","author":{"url":"https://github.com/briantoby","@type":"Person","name":"briantoby"},"datePublished":"2014-10-28T16:10:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/3734/matplotlib/issues/3734"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:095b79af-181f-804b-7026-b9a14722d9ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D486:18C096:3B0D5:4F400:6A532156 |
| html-safe-nonce | 371bbe6db38f7f324351a72cda5ea91638e248a57ca67ad5886ee0b89bf618f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDg2OjE4QzA5NjozQjBENTo0RjQwMDo2QTUzMjE1NiIsInZpc2l0b3JfaWQiOiIyNjUxNDQ0MjY3NTA0MDUwNTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7e92e5eb6fde9d3110e9faf143ac02da0b77eab4a633056ecf899aa1f9365b38 |
| hovercard-subject-tag | issue:47045625 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/3734/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d081646777bcd0601984886c088bb26f30162551fde42b73e6de7ac2cef1dc6/matplotlib/matplotlib/issues/3734 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d081646777bcd0601984886c088bb26f30162551fde42b73e6de7ac2cef1dc6/matplotlib/matplotlib/issues/3734 |
| og:image:alt | I have seen a problem on more than one Mac running OS X 10.9.x where MPL images are not updated properly. As one example of this, when one zooms a plot, by selecting the zoom widget, the rectangle ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | briantoby |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width