[Matplotlib-users] Contour/Contourf dynamically with slider

2011-01-18 Thread sprobst
Hi all, I want to make a contout plot with a slider element. But I am not sure if it is possible at all and if it is possible how. The code is a mixture of two examples I found in the web. One part is the slider example of matplotlib > from pylab import * > > N = 50 > x = linspace(.0, 1.0, N

Re: [Matplotlib-users] MemoryError with import matplotlib

2011-01-14 Thread sprobst
Problem solved ... even as orginally C++ or Java programmer it is strange, but a interpreted language makes it possible to obtain with an import at a different position a complety different behaviour during run-time. I just putted the import of mathplotlib and pylab after the file reading and af

Re: [Matplotlib-users] MemoryError with import matplotlib

2011-01-14 Thread sprobst
Dear Christoph, It is not a memory problem, because before the programm starts I have more than 1.3 GB free memory left. And on the other hand it depends on the import line! There seems to be some interference of the packages. My Python version is 2.6 (needed by another programm), perhaps that al

[Matplotlib-users] MemoryError with import matplotlib

2011-01-14 Thread sprobst
Hi all, I tried to plot parts of a large 3D array with each 4 float64 entries. Loading the array with numpy.fromfile and performing a type conversion afterwards ends up in a MemoryError. The following code reproduces the error: *** import gc from os import path f