Although I did not recover entirely the past behaviour, I managed to get
the plot displayed by the draw() command, by adding the pyplot.ion()
command at the start of the program.
(setting interactive mode)
In my first attempts, this solution did not work either. I don't know
exactly why. In my sense, the only explanation of those
non-reproductible behaviours is that there is a memory effect. Somehow,
Python/matplotlib remembers the "interactive" or non-interactive" status
from one execution of a program to the next, even when interactive
scripts commands are used between the calls to the program.
A word of warning: I read that if the interactive mode is selected in a
program, the plot will be updated at each plotting command instead of
waiting until a draw or show command. So, in some cases, this may
considerably slow down the program. So, being forced to switch to
interactive mode is not without consequence.
Even if switching to interactive mode gives an acceptable solution in
this case, an issue remains (bug?): why doesn't the draw() command
produce a plot in the non-interactive mode? Based on the documentation,
it should.
Have a nice day,
Frédéric
On 12/03/2012 11:11 AM, Louis Dumortier wrote: