Re: [Matplotlib-users] Continuously varying line colors?

2009-05-07 Thread Erik Tollerud
Ah, I see... well, that's doable although not necessarily ideal. Thanks to you both! On Mon, May 4, 2009 at 10:24 AM, Ryan May wrote: > On Mon, May 4, 2009 at 2:22 AM, Erik Tollerud > wrote: >> >> I'm hoping to generate a line plot where the color of each pixel on >> the plot is given by linearl

Re: [Matplotlib-users] xlabel vertical positioning

2009-05-07 Thread Eric Firing
Ryan May wrote: > On Thu, May 7, 2009 at 3:13 PM, Eric Firing > wrote: > > Ryan May wrote: > > On Tue, Apr 28, 2009 at 9:54 PM, Thomas Robitaille > >

Re: [Matplotlib-users] xlabel vertical positioning

2009-05-07 Thread Ryan May
On Thu, May 7, 2009 at 3:13 PM, Eric Firing wrote: > Ryan May wrote: > >> On Tue, Apr 28, 2009 at 9:54 PM, Thomas Robitaille < >> thomas.robitai...@gmail.com > wrote: >> >>Thanks! I could not find any documentation relating to this, so I was >>wondering

Re: [Matplotlib-users] xlabel vertical positioning

2009-05-07 Thread Eric Firing
Ryan May wrote: > On Tue, Apr 28, 2009 at 9:54 PM, Thomas Robitaille > mailto:thomas.robitai...@gmail.com>> wrote: > > Thanks! I could not find any documentation relating to this, so I was > wondering whether it would be better to go with a well-documented > function such as text or f

Re: [Matplotlib-users] xlabel vertical positioning

2009-05-07 Thread Ryan May
On Tue, Apr 28, 2009 at 9:54 PM, Thomas Robitaille < thomas.robitai...@gmail.com> wrote: > Thanks! I could not find any documentation relating to this, so I was > wondering whether it would be better to go with a well-documented > function such as text or figtext? What would be best to use? > > Th

Re: [Matplotlib-users] strange issue

2009-05-07 Thread Eric Firing
Thomas Robitaille wrote: > Hello, > > I'm having a strange issue, and I've managed to reduce it to a simple > problem. I created the following file structure: > > - a directory named scripts/ > - a script called scripts/inspect.py > - a script called scripts/test.py > > inspect.py contains jus

Re: [Matplotlib-users] strange issue

2009-05-07 Thread Sandro Tosi
On Thu, May 7, 2009 at 21:12, Thomas Robitaille wrote: > Hello, > > I'm having a strange issue, and I've managed to reduce it to a simple > problem. I created the following file structure: > > - a directory named scripts/ > - a script called scripts/inspect.py > - a script called scripts/test.py >

[Matplotlib-users] strange issue

2009-05-07 Thread Thomas Robitaille
Hello, I'm having a strange issue, and I've managed to reduce it to a simple problem. I created the following file structure: - a directory named scripts/ - a script called scripts/inspect.py - a script called scripts/test.py inspect.py contains just 'pass' and test.py contains 'from matplot

Re: [Matplotlib-users] I need all value on X(hours, minutes) label

2009-05-07 Thread Ryan May
On Mon, May 4, 2009 at 9:49 AM, Olivier Benoist < olivier.beno...@ericsson.com> wrote: > Hi, > I'm new with matplotlib. > > I need to make a graph with the X axis represents time in hours and > minutes. My script don't works, I want to display all the values of time > that I have. > I use a list o

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Robert Cimrman
Ryan May wrote: > On Thu, May 7, 2009 at 12:39 PM, Eric Firing wrote: > >> In case you are not receiving the automatic svn commit messages: yesterday >> I took the liberty of renaming log.py to multiprocess.py, because as far as >> I could see the former gave no clue as to the point of the exampl

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Ryan May
On Thu, May 7, 2009 at 12:39 PM, Eric Firing wrote: > In case you are not receiving the automatic svn commit messages: yesterday > I took the liberty of renaming log.py to multiprocess.py, because as far as > I could see the former gave no clue as to the point of the example. Feel > free to chan

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Eric Firing
Robert Cimrman wrote: > Ryan May wrote: >> On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman >> wrote: >> >>> Ryan May wrote: In case you are not receiving the automatic svn commit messages: yesterday I took the liberty of renaming log.py to multiprocess.py, because as far as I could see the form

Re: [Matplotlib-users] O pylab why do you refuse to import?

2009-05-07 Thread Christopher Barker
Brian Granger wrote: > I too have been bit by related freetype problems... > > Is there a way of telling matplotlib which freetype dylib to use on OS > X? at run time, no. At built time, then: > I can probably go and hack on the setup.py/setupext.py that's how. The tough part is that AFAICT,

Re: [Matplotlib-users] O pylab why do you refuse to import?

2009-05-07 Thread Brian Granger
I too have been bit by related freetype problems... Is there a way of telling matplotlib which freetype dylib to use on OS X? I have multiple installed and it finds the wrong one by default. I can probably go and hack on the setup.py/setupext.py to do this but I am hoping there is any easier way.

Re: [Matplotlib-users] OS X binary installer broken on 10.4?

2009-05-07 Thread Christopher Barker
Jouni K. Seppänen wrote: > AFAIK, the static linking is done precisely to avoid version mismatches > between different versions of freetype, zlib, and png on various > versions of OS X. Well, it was done originally because all those libs weren't there at all originally. Apple has slowly been addi

Re: [Matplotlib-users] O pylab why do you refuse to import?

2009-05-07 Thread Christopher Barker
John Seales wrote: > Turns out that libfreetype in X11 has a bug with mac os 10.4.11. I found > out how to fix it on > http://forums.macosxhints.com/archive/index.php/t-98792.html . The new > libfreetype, once in the right spot and called libfreetype.6.dylib seems > to work. If it works, you'r

Re: [Matplotlib-users] O pylab why do you refuse to import?

2009-05-07 Thread John Seales
Victory! Turns out that libfreetype in X11 has a bug with mac os 10.4.11. I found out how to fix it on http://forums.macosxhints.com/archive/index.php/t-98792.html . The new libfreetype, once in the right spot and called libfreetype.6.dylib seems to work. Thanks, Chris, for helping me. From

Re: [Matplotlib-users] O pylab why do you refuse to import?

2009-05-07 Thread John Seales
Victory! Turns out that libfreetype in X11 has a bug with mac os 10.4.11. I found out how to fix it on http://forums.macosxhints.com/archive/index.php/t-98792.html . The new libfreetype, once in the right spot and called libfreetype.6.dylib seems to work. Thanks, Chris, for helping me. From

Re: [Matplotlib-users] Wxpython, Matplotlib and draw_artist

2009-05-07 Thread John Hunter
On Wed, May 6, 2009 at 1:05 PM, Elan Pavlov wrote: > Hi, > I can't get wxpython to play well with matplotlib and draw_artist. > After mucking around quite a bit I think I narrowed it down to the > draw_artist function The problem seems to be that draw_artist when > working within wxpython (as oppo

Re: [Matplotlib-users] Wxpython, Matplotlib and draw_artist

2009-05-07 Thread Michiel de Hoon
> Looks like we have the culprit. Is this a bug or an > undocumented feature I think that the current code is a bit of a hack that sometimes works and sometimes doesn't, depending on which backend you use. > and is there anything I should do about it (i.e., > report it)? Yes, I think so. It's

Re: [Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-07 Thread Sebastian Pająk
OK works. I didn't notice the ticks arg. Thanks again Sebastian 2009/5/7 Jae-Joon Lee : > http://matplotlib.sourceforge.net/api/figure_api.html?highlight=colorbar#matplotlib.figure.Figure.colorbar > > cbar = colorbar(ticks=lev, format = l_f) > > -JJ > > > On Wed, May 6, 2009 at 3:28 PM, Sebastian

Re: [Matplotlib-users] Wxpython, Matplotlib and draw_artist

2009-05-07 Thread Elan Pavlov
Hi, By George, I think you've got it! That does explain the fact that old lines remain since the restore_background is what should remove them. To test out your hypotheses I added sleep commands after every line in the update_line() function and indeed a blank axes never appears. Looks like we ha

Re: [Matplotlib-users] Wxpython, Matplotlib and draw_artist

2009-05-07 Thread Michiel de Hoon
I am not sure if this is related, but maybe it can give you a hint. I looked at the copy_from_bbox/restore/draw_artist code a long time ago, and if I remember correctly by calling restore_region function, you're drawing directly onto the canvas. In contrast, if you do e.g. plot(x,y), you're not

Re: [Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-07 Thread Jae-Joon Lee
http://matplotlib.sourceforge.net/api/figure_api.html?highlight=colorbar#matplotlib.figure.Figure.colorbar cbar = colorbar(ticks=lev, format = l_f) -JJ On Wed, May 6, 2009 at 3:28 PM, Sebastian Pająk wrote: > Hello > > I have a contour plot with specified number of levels (isolines): > > lev =

[Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-07 Thread Sebastian Pająk
Hello I have a contour plot with specified number of levels (isolines): lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180]) to have a log "z" axis I put: from matplotlib import colors contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1])) now, to get colorbar in l

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Robert Cimrman
Ryan May wrote: On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman wrote: Ryan May wrote: On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman wrote: Just for the record: Ryan May's example in this thread, that uses pipes, inspired me to try pipes as well, instead of queues (multiprocessing.Pipe in

[Matplotlib-users] OS X binary installer broken on 10.4? (was: O pylab why do you refuse to import?)

2009-05-07 Thread Jouni K . Seppänen
John Seales writes: >> > I'm using python 2.5.2 on a macbook, intel microprocessor, mac os 10.4.11 > I installed matplotlib from the dmg file. I clicked on the icon to install it. I assume you mean the mpkg file - I don't see any dmg file on the download page. It seems to me that something is w

Re: [Matplotlib-users] Manually enable export as EMF

2009-05-07 Thread Gert-Jan
Hey all, I was just hoping anyone could help me further here... it would be highly appreciated. Thanks in advance, Gert-Jan Olivier Benoist wrote: > > Hi, > I'm new with matplotlib. > > I need to make a graph with the X axis represents time in hours and > minutes. My script don't works, I