Skip to content
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

FigureManagerQT used in new_figure_manager of Qt4Agg backend #1151

Closed
pmeier82-zz opened this issue Aug 27, 2012 · 5 comments
Closed

FigureManagerQT used in new_figure_manager of Qt4Agg backend #1151

pmeier82-zz opened this issue Aug 27, 2012 · 5 comments
Assignees

Comments

@pmeier82-zz
Copy link

There seems to be a FigureManagerQTAgg defined in backend_qt4agg.py, just wondering why its not used.

ref

@pelson
Copy link
Member

pelson commented Aug 27, 2012

Sensible question. Seems like it is a typo and is redundant. An extension to this would be to question the purpose of NavigationToolbar2QTAgg.

@ghost ghost assigned tacaswell Nov 29, 2013
@tacaswell
Copy link
Member

I actually think this is a bug that they are not used in new_figure_manager_given_figure in backend_qt4agg.

@efiring
Copy link
Member

efiring commented Nov 30, 2013

No, I think that both NavigationToolbar2QTAgg and FigureManagerQTAgg should be deleted from backend_qt4agg.py. They are functionally identical to their non-Agg counterparts. Neither the toolbar nor the Manager needs to know how the canvas is being rendered (i.e., by Agg).

efiring added a commit to efiring/matplotlib that referenced this issue Nov 30, 2013
@efiring
Copy link
Member

efiring commented Nov 30, 2013

PR #2629 seems to work; give it a try.

@tacaswell
Copy link
Member

I had assumed it was overriding something, but that seems to not be true (nor does it seem to ever be called). I will leave other comments on the PR

efiring added a commit that referenced this issue Nov 30, 2013
backend_qt4agg: remove redundant classes.  Closes #1151.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants