Re: [Matplotlib-users] plot() not using alpha value from RGBA tuple

2011-08-17 Thread Eric Firing
On 08/16/2011 12:42 AM, Vlastimil Brom wrote: 2011/8/16 Eric Firingefir...@hawaii.edu: On 07/25/2011 08:21 AM, Ben Breslauer wrote: I think that I have found the problem here. Line2D.draw() (and I presume other Artist subclasses) calls gc.set_foreground(self._color) ...

Re: [Matplotlib-users] mathtext in eps figures doesn't come out in pdf

2011-08-17 Thread Jonathan Slavin
Setting test.usetex to True solved this problem. The only drawback is that the font used for numbers and that used for axis labels is different and looks a bit odd. I'm sure the fix for that is not too difficult, however. Jon On Wed, 2011-08-17 at 14:09 +0900, Jae-Joon Lee wrote: Can you post

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-17 Thread Jeff Klukas
On Tue, Aug 16, 2011 at 4:22 AM, Damon McDougall d.mcdoug...@warwick.ac.uk wrote: Hi Jeff, I am able to run the tex_demo.py with no problems and I can create output files using the Agg backend.  When I try to use the PDF backend, however, I get an error which stems from dviread.py (pasted

Re: [Matplotlib-users] Error with PDF output with usetex

2011-08-17 Thread Damon McDougall
Hi Jeff, I am able to run the tex_demo.py with no problems and I can create output files using the Agg backend. When I try to use the PDF backend, however, I get an error which stems from dviread.py (pasted below). Any thoughts on what could be going wrong? Thanks! Jeff Hi

Re: [Matplotlib-users] Best way to cycle through numpy images using scroll?

2011-08-17 Thread Keith Hughitt
I'm also looking into a similar issue, and would be interested to see what approaches others have taken. Has anyone found a good framework-independent solution? Keith On Wed, Aug 10, 2011 at 5:15 PM, David Just just.da...@mayo.edu wrote: I have an array of images stored as an array of numpy

Re: [Matplotlib-users] Best way to cycle through numpy images using scroll?

2011-08-17 Thread Tom Dimiduk
Here is how am solving this problem. It isn't terribly fast either, but it works for me. I wrote something with pygame that was faster, but it had its own set of problems. Tom --- import numpy as np import pylab class plotter: def __init__(self, im, i=0): self.im = im

Re: [Matplotlib-users] Best way to cycle through numpy images using scroll?

2011-08-17 Thread Benjamin Root
Two issues with your code that should significantly speed things up. First, by calling imshow() each time for the draw, there is significant overhead caused by this. Instead -- (and this is a huge speedup) -- save the object returned by the first call to imshow(). That object has a method

Re: [Matplotlib-users] Best way to cycle through numpy images using scroll?

2011-08-17 Thread Tom Dimiduk
Excellent! That sped things up quite a bit. I can now flip through my small images with no perceivable delay. I will look forward to trying out the new interpolation setting when it gets here, since I have some larger images that still lag slightly. If others want, I can repost my code with

[Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread hari jayaram
Hi everyone, I have successfully plotted a set of 372 (x,y,z ) scattered values in 7 series. Each point is a circle colored according to a color based on a simple lookup table. # Lookup table for color col_lut = dict(Bistris7p2 = burlywood, Cit7p2 = c,APhosph8p0 = m, Acetate5p5 = k,Borate8p5 =

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread Benjamin Root
On Wed, Aug 17, 2011 at 3:29 PM, hari jayaram hari...@gmail.com wrote: Hi everyone, I have successfully plotted a set of 372 (x,y,z ) scattered values in 7 series. Each point is a circle colored according to a color based on a simple lookup table. # Lookup table for color col_lut =

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread hari jayaram
Thanks for your email Ben. Sorry I am still lost. I dont understand what the handles type is . In my example I guess the handles are an array of circles representing each x,y,z point.I am still a little lost since the plot autmatically plots my 3 arrays The color of each circle is arbitrary and

[Matplotlib-users] changing the cursor position with a key press

2011-08-17 Thread Mathew Yeates
Does anyone have an example showing how to change the cursor position using the key pad instead of the mouse? -Mathew -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread John Hunter
On Wed, Aug 17, 2011 at 5:30 PM, hari jayaram hari...@gmail.com wrote: Thanks for your email Ben. Sorry I am still lost. I dont understand what the handles type is . In my example I guess the handles are an array of circles representing each x,y,z point.I am still a little lost since the plot

Re: [Matplotlib-users] changing the cursor position with a key press

2011-08-17 Thread Benjamin Root
On Wednesday, August 17, 2011, Mathew Yeates mat.yea...@gmail.com wrote: Does anyone have an example showing how to change the cursor position using the key pad instead of the mouse? -Mathew Are you talking about externally to mpl or within mpl? I have some code from a couple of months ago

Re: [Matplotlib-users] changing the cursor position with a key press

2011-08-17 Thread Mathew Yeates
I'm looking for something like - display = gdk_display_get_default (); screen = gdk_display_get_default_screen (display); /* get cursor position */ gdk_display_get_pointer (display, NULL, x, y, NULL); /* set new cusor position */ x += xadd; y += yadd;

Re: [Matplotlib-users] changing the cursor position with a key press

2011-08-17 Thread Mathew Yeates
Here is how to do it display=mainwindow.get_display() screen = gtk.gdk.Display.get_default_screen(display) x,y=mainwindow.get_pointer() s,x,y,m = display.get_pointer() gtk.gdk.Display.warp_pointer(display, screen,x+1,y) On Wed, Aug 17, 2011 at 11:53 PM, Mathew Yeates

Re: [Matplotlib-users] changing the cursor position with a key press

2011-08-17 Thread Benjamin Root
On Wed, Aug 17, 2011 at 7:01 PM, Mathew Yeates mat.yea...@gmail.com wrote: Here is how to do it display=mainwindow.get_display() screen = gtk.gdk.Display.get_default_screen(display) x,y=mainwindow.get_pointer() s,x,y,m = display.get_pointer()

Re: [Matplotlib-users] changing the cursor position with a key press

2011-08-17 Thread Mathew Yeates
cool, On Wed, Aug 17, 2011 at 5:15 PM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Aug 17, 2011 at 7:01 PM, Mathew Yeates mat.yea...@gmail.com wrote: Here is how to do it    display=mainwindow.get_display()    screen = gtk.gdk.Display.get_default_screen(display)    

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread hari jayaram
Thanks a lot John and Benjamin for your help. The Proxy Artist approach fits the bill perfectly. I used the following code to make a legend from my color_lut lookup table. # Lookup table for color col_lut = dict(Bistris7p2 = burlywood, Cit7p2 = c,APhosph8p0 = m, Acetate5p5 = k,Borate8p5 =