Hi Goyo,

I see! I am using the macosx backend. That was the hint I needed. Thanks a lot!

Maximilian

On Tue, Jun 19, 2012 at 9:27 PM, Goyo <goyod...@gmail.com> wrote:
> 2012/6/8 Maximilian Fabricius <mfabric...@gmail.com>:
>> Hi all,
>>
>> it seems that whenever I plot something, a window opens.
>>
>> from matplotlib import pylab
>> import numpy
>> pylab.plot(numpy.random.normal(size=100))
>>
>> Now, I have code that is supposed to produce diagnostic plots as PDFs. Only
>> when I pass a command line option the script should actually open a
>> window and also display
>> the results on the screen.
>>
>> I am pretty sure that in earlier times the window would only open when
>> I call pylab.show().
>>
>> It may well be that I messed too much with my matplotlibrc, if you
>> could just point me in the right direction ...
>>
>> I use matplotlib 1.0.1 on a Mac with the MacOSX backend.
>
> From 
> http://matplotlib.sourceforge.net/faq/usage_faq.html#non-interactive-example:
>
> ----------------------------------------------------------
> import matplotlib.pyplot as plt
> plt.ioff()
> plt.plot([1.6, 2.7])
>
> Nothing happened–or at least nothing has shown up on the screen
> (unless you are using macosx backend, which is anomalous).
> ----------------------------------------------------------
>
>
> Goyo



-- 
--------------------------------------------------------------------
  Maximilian Fabricius
  * Max Planck Institute for Extraterrestrial Physics (MPE)
     Giessenbachstrasse, D-85748 Garching, Germany
  * University Observatory Munich /   Wendelstein Observatory
     Scheinerstr. 1, D-81679 München, Germany
  eMail:  m...@mpe.mpg.de
  Phone:  +49 89 30000 3779
  --------------------------------------------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to