I would like to use matplotlib in a programmatic way.
I thought about creating a Figure object (with no canvas), and plot in
Depending on what the user wants, I could then either plot on screen
or save on file.
The problem is that I don't know how to connect a Figure object to the
FigureCanvas that the user chose in its preference file. In other
words, I would like to do what the function figure() does, but for an
existing Figure object.
How could I do that?