[Matplotlib-users] "Illegal instruction" on import

2010-11-03 Thread Marcin Krol
Hello, I've installed 1.0.0 on Python 2.4 (Debian Etch) and am getting just this: Python 2.4.4 (#2, Jan 24 2010, 11:19:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib.pyplot as plt Illeg

[Matplotlib-users] using MPLCONFIGDIR in mod_python / web apps

2009-06-24 Thread Marcin Krol
Hello everyone, Can't I set programmatically the home dir of Matplotlib by some function call of Matplotlib? I'm sorry, but using environment variable is a bad design in web apps context: suppose several apps run in Apache virtual hosts, under *the same* user and they use Matplotlib. In conseq

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread Marcin Krol
John Hunter wrote: > First of all, on the clean build, when you do > > import matplotlib._path > > do you still get the same error. No, it's working fine on the new build (the import above and the whole installation0 -- once I switched to VC++ from MinGW. Regards, mk

[Matplotlib-users] setting line parameters like color, lw, etc

2009-01-27 Thread Marcin Krol
Hello everyone, Newbie alert. How do I set the attributes of Line2D instance? I have: origline = plt.plot(origlist) valine = plt.plot(valist) plt.xlim(0,256) valine.set_color('r') valine.set_linewidth(2) I get: Traceback (most recent call last): File

[Matplotlib-users] setting line parameters like color, lw, etc

2009-01-27 Thread Marcin Krol
Hello everyone, Got it now, plot() apparently returns a list and I have to unpack it, I feel silly now... Regards, mk -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. htt

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread Marcin Krol
John Hunter wrote: > It might help if you recursively remove the buld directory, do a clean > rebuld, capture the build output in a file, and post that here so we > can see if we can get an idea what is going on Since it's over 250kB, I pasted it here: http://pastebin.com/f466bd0db Regards, mk

[Matplotlib-users] RuntimeError: maximum recursion depth exceeded while calling a Python object

2009-01-27 Thread Marcin Krol
Hello everyone, Forget it, I was mistakenly passing a list of dictionaries to the pyplot function instead of passing a list of extracted values. Regards, mk -- This SF.net email is sponsored by: SourcForge Community S

[Matplotlib-users] RuntimeError: maximum recursion depth exceeded while calling a Python object

2009-01-27 Thread Marcin Krol
Hello everyone, It's fine when I plot in interactive Python shell like so: import matplotlib.pyplot as plt plt.plot(valist) plt.show() However, I get an exception like in subject when I call it from function: def plotit(origlist, valist): plt.plot(origlist) plt.plot(valist)

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread Marcin Krol
Hello Patrick, Thanks for reply! > I didn't catch on the first email you were trying to build for > python2.6. I haven't been able to get matplotlib to build correctly > with python2.6. I'm actually curious as to how you were able to build > matplotlib using the win32_static folder since it doe

Re: [Matplotlib-users] building from source on Windows

2009-01-26 Thread Marcin Krol
Hello Patrick, > I had similar problems building on my windows machine until I did this > and now it works fine. You might also check all the README documents, > as one of them gives you more information about building for windows. I followed the instructions from README in win32_static precisel

[Matplotlib-users] building from source on Windows

2009-01-26 Thread Marcin Krol
Hello everyone, I'm trying to get 0.98.5.2 installed on Windows to use Python 2.6 (dependency packages I need to use on that version, long story, etc). When I was trying to build it (python setup.py build), it was finding the VC 9.0 C++ compiler on my comp. However, after adding necessary pack