show() in pylab doesn't work if used twice

Robert Kern robert.kern at gmail.com
Thu Jul 7 01:26:15 CEST 2011


On 7/6/11 5:05 PM, Ravikanth wrote:
> Hi all,
>
> I have been using python for just over a month now.
> I am writing a program to plot some graph using the  show() twice in
> the same program. The code snippet is shown below.

Please use the matplotlib-users list for matplotlib questions. By the way, four 
versions of your message made it to this list. I'm sure the repetition was an 
honest mistake, but there may be things you can do to prevent it in the future.

   https://lists.sourceforge.net/lists/listinfo/matplotlib-users

To answer your question, you are probably using an older version of matplotlib 
than 1.0.0. The ability to use show() more than once was only added in 1.0.0:

   http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list