Re: [Matplotlib-users] matplotlib threadsafe?

2008-03-21 Thread Eric Firing
Out of interest, how does one tell MPL to start a new figure and forget everything that's gone before? You can minimize the amount of package and module-level state information by using the oo interface: see examples/agg_oo.py. If you change any rcParams dictionary entries, typically using

Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread Eric Firing
Chris Withers wrote: Michael Droettboom wrote: That's cool'n'all, but when is svn going to make it into a Windows binary release? ;-) I suspect your question is somewhat rhetorical, but... it will probably be a while ;) Why is that? Who cranks out the binary releases on Windows and

Re: [Matplotlib-users] Install problem on Leopard

2008-03-21 Thread Andrew Charles
On Fri, Mar 21, 2008 at 10:13 AM, Christopher Barker [EMAIL PROTECTED] wrote: Compiling Matplotlib from source, or easy_installing the egg From the egg: ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for hmm -- odd, I wouldn't think the egg should be linked against

Re: [Matplotlib-users] from pylab import nx?

2008-03-21 Thread Michael Droettboom
Chris Withers wrote: Eric Firing wrote: If you are referring to scripts in the matplotlib/examples/ subdirectory then you must have a version in which some of those scripts had not been brought up to date with the rest of matplotlib. You should turn them into unit tests as well

Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread Michael Droettboom
Chris Withers wrote: Michael Droettboom wrote: That's cool'n'all, but when is svn going to make it into a Windows binary release? ;-) I suspect your question is somewhat rhetorical, but... it will probably be a while ;) Why is that? Who cranks out the binary releases on Windows and

Re: [Matplotlib-users] BUG: Log axes are upside down with PDF output...

2008-03-21 Thread Michael Droettboom
I vaguely recall a bug whereby mathtext on PDF was upside down (because the direction of the y-axis was not being inverted)... but I can't find the bug report. It does seem to work in 0.90.1 and 0.91.2 (on Linux at least). Are you able to upgrade? Cheers, Mike Simson Garfinkel wrote: Hi.

Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread Wayne E. Harlan
Chris: I have used cygwin to compile numpy and scipy svn versions for win XP on my old athlon system. I believe the scipy site has some detailed instructions. However, I have done a lot of compiling on my linux system and so that part was easy (configure, make, make install, etc) I don't

[Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread Kenneth Miller
All, Is it possible to plot dates on the Y-axis? I'd like to have dates on the y axis descending or ascending versus my values on the x - axis. Is it possible to do this or simply switch the axis? Thanks! Regards, Ken

Re: [Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread Chris Withers
Kenneth Miller wrote: Is it possible to plot dates on the Y-axis? I'd like to have dates on the y axis descending or ascending versus my values on the x - axis. Is it possible to do this or simply switch the axis? Not sure what you mean, have you just tried it with plot or

Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread Christopher Barker
Eric Firing wrote: It would be nice if some people who have successfully built on Windows could collectively assemble a step-by-step account of how to go from a bare Win box to a working mpl (preferably compiled with mingw); but maybe this would take more effort than it is worth. I don't

Re: [Matplotlib-users] plotting filled lines with missing data?

2008-03-21 Thread Chris Withers
Pierre GM wrote: Your data is indexed in time, right ? Your x-axis is a date object ? Then use scikits.timeseries http://scipy.org/scipy/scikits/wiki/TimeSeries I'm not sure what this is giving me. The dates are all python datetimes in a list already. The missing values started off as '', I

Re: [Matplotlib-users] Install problem on Leopard

2008-03-21 Thread Christopher Barker
Andrew Charles wrote: Looking back over the easy_install output it looks as if it does download another tarball and try to build it. I read another thread where this was happening to someone else. What did you try to install? was it this: matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg which I

Re: [Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 11:27 AM, Kenneth Miller [EMAIL PROTECTED] wrote: All, Is it possible to plot dates on the Y-axis? I'd like to have dates on the y axis descending or ascending versus my values on the x - axis. Is it possible to do this or simply switch the axis? Not a problem

Re: [Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread Kenneth Miller
On Mar 21, 2008, at 11:56 AM, Chris Withers wrote: Kenneth Miller wrote: Is it possible to plot dates on the Y-axis? I'd like to have dates on the y axis descending or ascending versus my values on the x - axis. Is it possible to do this or simply switch the axis? Not sure what

Re: [Matplotlib-users] Plotting dates on the Y axis?

2008-03-21 Thread Chris Withers
Kenneth Miller wrote: back in time. When i pass plot_dates timestamps for the y axis, and integers for the x axis it simply displays the y-axis as floats. did you try: plot_dates(x,dates,ydate=True) ? Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Matplotlib-users] from pylab import nx?

2008-03-21 Thread Michael Droettboom
Chris Withers wrote: Michael Droettboom wrote: The backend_driver.py example runs a number of other examples using a number of different backends. That's been a reasonably successful set of regression and coverage tests. It's not perfect, but it's a start. There are also some

[Matplotlib-users] 'from matplotlib.cbook import is_scalar, dedent' ImportError: cannot import name dedent

2008-03-21 Thread pmarsh
Hello List, I am using python-matplotlib version 0.87.7-0.3ubuntu1(feisty) and having some problems with a script that uses it. I get this import error and am not sure how to debug it further, any assistance would be greatly appreciated. Best regards, Paul marsh

[Matplotlib-users] Vary point color with scatter

2008-03-21 Thread Michaël Douchin
Hi list, I have a set of data with 3 columns : x = x coordinate of the point y = y coordinate z = temperature I can't see how to set a different color for each point function of temperature value. I have tried, which draw a colorfull beautiful map, the color varying with the row rank of x

Re: [Matplotlib-users] Scatterplot problem

2008-03-21 Thread Sean Hammond
Okay I've learnt a bit more about this: http://img229.imageshack.us/img229/6467/scatterplot5st6.png I need to explicitly make a new figure as well as a new axis, and put the rc calls before the figure calls, rc changes only seem to take effect on figures created afterwards. Also I was stupidly

[Matplotlib-users] problem with agg

2008-03-21 Thread Luis Carlos Garelli
Greetings... I am working using the matplotlib version 0.90.1, and i am having some strange problems with my application. When i execute in some pcs, there is no problem at all, but in others pcs, i receive this message: File pylab.pyc, line 1 in ? File matplotlib\pylab.pyc, line 203 in ? File

Re: [Matplotlib-users] Plotting in C++

2008-03-21 Thread Francesco Biscani
Hi all, Christopher Barker wrote: The only difference that my users see between an app written in Python and C++ is that the Python one has more features...and fewer bugs. I'm currently working mostly in C++ and exploring integration with Python through Boost.Python+IPython+MPL. I enjoy

[Matplotlib-users] I really need help about installing matplotlib.

2008-03-21 Thread lovegf86
Please Help me. I am a beginner in programming. Due to my research, I should know how to make graph using python and matplotlib. I went to matplotlib website and downloaded and installed enthought python Enthought python is a package that include numpy, wxPython GUI toolkit and SciPy. I

[Matplotlib-users] PNG filesize

2008-03-21 Thread Einar M. Einarsson
Hi all, I'm trying to find ways to make the file-size of my PNG images smaller. When I generate my 660*440px image I get a big 168kb file. (8bit RGB color model, has an alpha channel (need that) but no interlacing scheme) Here it is: http://metphys.org/eme/T05.png I'm using the savefig

[Matplotlib-users] issues with yahoo historical data candlestick drawing in finance.py

2008-03-21 Thread Michael Redman
Hi all, I apologize in advance if these issues have already been addressed. I did a search of the mailing lists and did not find them discussed but I may have missed them. I had some trouble getting the historical quotes data from yahoo to work, apparently because yahoo changed the format of

Re: [Matplotlib-users] Compiler error on OS X 10.5.2 in agg

2008-03-21 Thread Andrew Jaffe
Hi All, Zachary Pincus wrote: Can you tell me where you specified the -Os option to gcc to escape the problem? So the compile that command that failed is printed right above the error message it generated. (The long line that starts with 'gcc' ...). I just copied this command,

Re: [Matplotlib-users] PNG filesize

2008-03-21 Thread Ted Drain
I'd guess PNG won't get much smaller because you have a lot of different colored pixels. PNG compresses most when you have a sparser plot. I'd suggest that you try using JPG. It will compress the multi-colored portion of your plot way down. You may see a few artifacts if you look carefully at

Re: [Matplotlib-users] BUG: Log axes are upside down with PDF output...

2008-03-21 Thread Simson Garfinkel
On Mar 21, 2008, at 6:12 AM, Michael Droettboom wrote: I vaguely recall a bug whereby mathtext on PDF was upside down (because the direction of the y-axis was not being inverted)... but I can't find the bug report. It does seem to work in 0.90.1 and 0.91.2 (on Linux at least). Are

[Matplotlib-users] Color schemes for XY plots?

2008-03-21 Thread Kenneth Miller
All, A quick question So i've experimented with pcolor, and it's not really what I'm looking for. What I'm attempting to do is plot some XY coordinates, just a simple function, with the line being colored differently depending on the value of that function. So if perhaps you were

Re: [Matplotlib-users] How do I change the font size for the default coordinates?

2008-03-21 Thread John Hunter
On Thu, Mar 20, 2008 at 7:32 PM, carlwenrich [EMAIL PROTECTED] wrote: I've searched the user manual (and this forum) but I don't see anything that helps. Assuming you mean what we call the tick labels: import matplotlib matplotlib.rcParams['xtick.labelsize'] = 14

Re: [Matplotlib-users] 'from matplotlib.cbook import is_scalar, dedent' ImportError: cannot import name dedent

2008-03-21 Thread John Hunter
On Sat, Feb 23, 2008 at 3:25 AM, pmarsh [EMAIL PROTECTED] wrote: Hello List, I am using python-matplotlib version 0.87.7-0.3ubuntu1(feisty) and having some problems with a script that uses it. I get this import error and am not sure how to debug it further, any assistance would be greatly

Re: [Matplotlib-users] Color schemes for XY plots?

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 2:34 PM, Kenneth Miller [EMAIL PROTECTED] wrote: So i've experimented with pcolor, and it's not really what I'm looking for. What I'm attempting to do is plot some XY coordinates, just a simple function, with the line being colored differently depending on the

Re: [Matplotlib-users] Vary point color with scatter

2008-03-21 Thread John Hunter
On Tue, Feb 26, 2008 at 3:23 AM, Michaël Douchin [EMAIL PROTECTED] wrote: What is the good way to do what I reach for ? I have much trouble to know how to define the c parameter of scatter. I saw the arrange thing somewhere in internet, but don't understand what it is for. Have you

Re: [Matplotlib-users] compiling from svn on windows

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 2:00 AM, Eric Firing [EMAIL PROTECTED] wrote: Charlie Moad does the Windows releases. I don't know what compiler he uses. It would be nice if some people who have successfully built on Windows could collectively assemble a step-by-step account of how to go from a

Re: [Matplotlib-users] Plotting in C++

2008-03-21 Thread Alan G Isaac
On Sat, 01 Mar 2008, Francesco Biscani apparently wrote: I'm currently working mostly in C++ and exploring integration with Python through Boost.Python+IPython+MPL. I enjoy working in Python, but I'm afraid of making a more consistent switch mainly for fear of losing the static type

[Matplotlib-users] update: BUG - axes problem update

2008-03-21 Thread Simson Garfinkel
1. Moving to matplotlib-0.91.2 solved the problem with PDF generation on log axes. 2. Installing matplotlib-0.91.2 on Linux required installing these packages first: * freetype-devel * libpng-devel (Those packages were NOT installed automatically by easy_install)

[Matplotlib-users] question #2 - labeled bar graphs

2008-03-21 Thread Simson Garfinkel
Is there an easy way to label bars with the value of the bar at that point? I am doing log bars and it would be nice to have them labeled. I guess I can do this manually using text() and the values returned by bar(); is there an automatic way to do it? Thanks!

Re: [Matplotlib-users] PNG filesize

2008-03-21 Thread Eric Firing
Einar M. Einarsson wrote: Hi all, I'm trying to find ways to make the file-size of my PNG images smaller. When I generate my 660*440px image I get a big 168kb file. (8bit RGB color model, has an alpha channel (need that) but no interlacing scheme) Here it is:

[Matplotlib-users] Problem with matplotlib and pdflatex

2008-03-21 Thread Alex Coventry
I'm trying to use some matplotlib-generated pdfs in a pdflatex document, and seeing some extremely weird and disruptive size effects. The resulting pdfs can be seen at http://research.janelia.org/coventry/paper.pdf http://research.janelia.org/coventry/paper-small.pdf The first results from the

Re: [Matplotlib-users] question #2 - labeled bar graphs

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 4:18 PM, Simson Garfinkel [EMAIL PROTECTED] wrote: Is there an easy way to label bars with the value of the bar at that point? I am doing log bars and it would be nice to have them labeled. I guess I can do this manually using text() and the values returned by

Re: [Matplotlib-users] matplotlib threadsafe?

2008-03-21 Thread John Hunter
On Fri, Mar 21, 2008 at 1:40 AM, Eric Firing [EMAIL PROTECTED] wrote: Out of interest, how does one tell MPL to start a new figure and forget everything that's gone before? You can minimize the amount of package and module-level state information by using the oo interface: see

Re: [Matplotlib-users] [newbie] live plots of multiple lines

2008-03-21 Thread Chris Withers
Hey Matthias, Matthias Michler wrote: maybe something like the following helps you: - from pylab import * from time import sleep ion() # interactive mode 'on' figure() ax =

Re: [Matplotlib-users] Plotting in C++

2008-03-21 Thread Simson Garfinkel
Dear Francesco, I'm sorry --- it is hard not to read your message and laugh. You really think that the static type checking of C++ is protecting you? Well, it may be, but C++ is unsafe in so many other ways that you are not doing yourself a favor by working in it. If you want to use a

Re: [Matplotlib-users] Install problem on Leopard

2008-03-21 Thread Andrew Charles
Yes it was the matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg I tried to install. I've posted the entire easy_install output below. I'll let the list know if i resolve the problem. Andrew --- Processing matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg