factor the pyplot dependence out of the figure_manager classes #2617
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a fisrt try to remove the pyplot/pylab stuff from the figure manager.
The implementation is currently only for GTK3 for review and coments
This idea has been mentioned (mainly by @tacaswell and myself) several times in PRs #2604, #2465, #1849 and on the mailing list
Objective
The main idea is to have figure, canvas and manager that are independent from pyplot/pylab.
This brings among other things, the possibility to use the "ready to use" GUI inside other applications, without having to reconstruct the window/toolbar etc..
Proposed modifications
The new files
Contain the independent classes, that can be used anywhere without calling the pyplot/pylab stuff.
The existing files
Contain the classes that depend on pyplot/plylab. These are the classes that are currently used and can be used without any side effect.
Impact on the existing backends
There are two small modifications to the
backend_bases.pyand the respective correction for all the backends. So they should be working the same.