On 9/13/10 1:38 PM, Virgil Stokes wrote:
I have tried to produce a very simple plot with my recent installation
of matplotlib (1.0.0 64-bit) and numpy (1.5.0 64-bit) using the
following code (taken from the matplotlib tutorial material).
*import matplotlib
import numpy
import matplotlib.pyplot as plt
print matplotlib.__version__
print numpy.__version__
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()*
If I execute this in Windows 7 (64-bit) it works correctly. If I
execute this in Windows Vista (32-bit) it works correctly.
If I execute this in Ubuntu 10.04 64-bit the versions are printed out
correctly and thus I believe that the packages are being imported;
but, /no plot is produced!/
Why not?
Virgil:
Probably your default backend on Ubuntu is a non-gui backend (like Agg).
See http://matplotlib.sourceforge.net/faq/installing_faq.html#backends
for the definition of a "backend" and how to change the default.
-Jeff
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : jeffrey.s.whita...@noaa.gov
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users