[Matplotlib-users] matplotlib + mpi4py on win32

2007-01-30 Thread Alex Pletzer
Hi,

Has anyone had experience running matplotlib in conjunction with 
mpi4py/mpich2 on Windows?

The following program hangs (python 2.4), even when running  with 
mpiexec -n 1 python :

import pylab
from mpi4py import MPI

pylab.plot([1,2,3])
pylab.show()

but runs once the line pylab.show() is commented out. I haven't seen 
that behavior on Linux or Mac OS X. Thanks in advance for your help.

--Alex


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Saving image on Windows problem

2007-01-30 Thread Stephen George





Has anyone else noticed a problem when saving an image (png) on windows.
Hard to describe, .. but it seems that if there is lots of data to plot
and window size too big, or maximized, it cannot save the full plot
data stopping half way. (plot look fine on window).   Interesting
reducing the window size can get to the point where can save the full
image.

Good plot (small window size)
http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/12p5KInternalIR_InputGndGood.png

Failed plot (larger window size)
http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/12p5KInternalIR_InputGndFailed.png

I get the same problem on two different systems:
Windows XP & Python 2.4 & matplotlib & numarray 1.5.2
matplotlib installed from matplotlib-0.87.6.win32-py2.4.exe
matplotlibrc has 
backend  : TkAgg
numerix  : numarray  # numpy, Numeric or numarray
interactive  : False  # see 
  

Windows 2000 & Python 2.5 & matplotlib & numpy 1.0
matplotlib installed from matplotlib-0.87.7.win32-py2.5.exe
matplotlibrc has 
backend  : TkAgg
  numerix  : numpy  # numpy, Numeric or numarray
  #interactive  : False  # see http://matplotlib.s


find my data here
http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/ScanDataInternalIR_GndInput.log

and the script here (only tested with numpy and numarray)
http://members.optusnet.com.au/~steve_geo/MatPlotLibTests/irplot24.py

the command to reproduce the test is 
irplot24.py --second=fft
--target=60 ScanDataInternalIR_GndInput.log

=
Also it's also interesting to note the difference in load time
(sec) of the data between numarray and numpy for the same data.
Windows 2000 & Python 2.4 & matplotlib &
numarray
X:\srg\MatPlotLibTests>c:\python24\python ..\irplot24.py
--second=fft --target=60 ScanDataInternalIR_GndInput.log
Importing pylab library  1.685
Opening file and loading array . 3.999

Windows 2000 & Python 2.5 & matplotlib & numpy
X:\srg\MatPlotLibTests>c:\python25\python ..\irplot24.py
--second=fft --target=60 ScanDataInternalIR_GndInput.log
Importing pylab library  0.882
Opening file and loading array . 10.687



Thanks for any comments
Steve




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users