Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fix Wx inconsistencies#10518
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Fix Wx inconsistencies#10518
Changes fromall commits
fa3209e
015db3e
3a50249
deeeeb6
9d369a1
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -6,11 +6,12 @@ | ||
import wx | ||
import matplotlib | ||
frommatplotlib import cbook | ||
from . import wx_compat as wxc | ||
from .backend_agg import FigureCanvasAgg | ||
from .backend_wx import ( | ||
_BackendWx, _FigureCanvasWxBase, FigureFrameWx, | ||
NavigationToolbar2Wx as NavigationToolbar2WxAgg) | ||
class FigureFrameWxAgg(FigureFrameWx): | ||
@@ -71,15 +72,13 @@ def blit(self, bbox=None): | ||
filetypes = FigureCanvasAgg.filetypes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Please leave until 3.0 (one minor-release deprecation period at least, usually two). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I don't see that any other NavigationToolbar2 is deprecated, especially not the wx non-Agg one. Not having the Toolbar alias in backend_wxagg can break things, though. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Having a deprecation for the Toolbar alias would require to replace the assignment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. derived deprecated class sounds good to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Thanks. Done, incl. alternatives in deprecation messages. | ||
@cbook.deprecated("2.2", alternative="NavigationToolbar2WxAgg") | ||
class Toolbar(NavigationToolbar2WxAgg): | ||
pass | ||
# agg/wxPython image conversion functions (wxPython >= 2.8) | ||
def _convert_agg_to_wx_image(agg, bbox): | ||
""" | ||
Convert the region of the agg buffer bounded by bbox to a wx.Image. If | ||