Re: [Matplotlib-users] Plotting basemap on top of other data

2011-12-13 Thread Laat de, Jos (KNMI)
# This is a piece of code that I actually used to try to solve the problem # Just assumed that I have an int32 array (data) with satellite data of dimensions [x,y,3] filled with RGB values ... I have removed the reading of satellite sample data, which is not relevant here. # The satellite

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread Fabien Lafont
Hey David, I'm doing this program to control an experiment, so I want to put the voltage on the sample, then wait two seconds to be sure there is no current fluctuations then measure the curent with multimeters and finally plot the datas. That's why I need the sleep... In fact I wanted to use in

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread David Hoese
Fabien, The GUI not being responsive might be my fault, I've never used a timer of 0 and processEvents(). I think what might be happening is that when you call processEvents, the timer of 0 calls your principal function again, which calls processEvents again, and so on. Try a timer of 2

Re: [Matplotlib-users] [SciPy-User] matplotlib: Simple legend code no longer works after upgrade to Ubuntu 11.10

2011-12-13 Thread Warren Weckesser
On Mon, Dec 12, 2011 at 7:05 PM, C Barrington-Leigh cpblpub...@gmail.comwrote: Oops; I just posted this to comp.lang.python, but I wonder whether matplotlib questions are supposed to go to scipy-user? How about matplotlib-users@lists.sourceforge.net? I've cc'ed to that list. Warren

[Matplotlib-users] Fonts question.

2011-12-13 Thread Hongchun Jin
*Hi folks, * * * *I try to use the PDF backend in my plotting script, when I expect to have a pdf figure. However, when I open the figure in Adobe Illustrator, it turns out that the fonts are not real fonts. I mean I want to be able to directly edit them. For example, when I double click the fonts

[Matplotlib-users] plot_date issue : OverflowError: date value out of range

2011-12-13 Thread Jérôme
Hi all. I'm trying to use plot_date and I get an error I don't understand. I've reduced my problem to this small example: - from pylab import figure, show dates = [301,302,303] #dates = [1,2,303] #dates = [1,2,3] values = [1,2,4]

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread Drain, Theodore R (343P)
Perhaps I'm missing something, but why not use QTimer? You can't really every call sleep in a single threaded gui (for reasons you've encountered). If you need to poll something, create a QTimer for 2 seconds and have it call a measurement function to update the data. You shouldn't need any

Re: [Matplotlib-users] Plot Fill with Jacobian Coordinates

2011-12-13 Thread Alex Naysmith
On Mon, Dec 12, 2011 at 7:03 PM, Benjamin Root ben.r...@ou.edu wrote: On Sat, Dec 10, 2011 at 10:36 AM, Alex Naysmith yeoman.pyt...@gmail.comwrote: Hello, I'm trying to plot the stresses in colour of a strained isoparametric element. I have a six noded triangle with vertice coordinates

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread David Hoese
Yeah I didn't think about suggesting that, but I think it might get complicated. I think he would have to start a one shot timer to call a function to set the voltage. Then that function would also start another one shot timer to call another function that would read from the sample. That

[Matplotlib-users] 3D plotting

2011-12-13 Thread Martella, C.
Hello, I have 2D array where each (x, y) cell represents the height of that point on the Z axis (you can think of it as the map of some mountain chain). I'd like to get the plot_surface() of this data. What I don't understand in particular is the content of the X, Y ,Z array parameter in my

[Matplotlib-users] contourf: matplotlib.path.Path are LINETOs?

2011-12-13 Thread Nico Schlömer
Hi all, when drawing contourf plots, I inspected the underlying matplotlib.path.Path elements that determine the curves and noticed that they are all of code LINETO (see http://matplotlib.sourceforge.net/api/path_api.html#matplotlib.path.Path) although the number of vertices is 6, actually

[Matplotlib-users] get_facecolor() returns 4-tuple, contains RGB values?

2011-12-13 Thread Nico Schlömer
Hi, upon extracting the face color of a matplotlib.path.Path object, fc = obj.get_facecolor() I always seem to get an array of length 4. This initially led me to believe I'm dealing with CMYK values, but it really seems like the last entry is *always* 1.0 and the first three give the RGB

Re: [Matplotlib-users] get_facecolor() returns 4-tuple, contains RGB values?

2011-12-13 Thread Nico Schlömer
RGB and RGBA are sequences of, respectively, 3 or 4 floats in the range 0-1. That would explain it. It also seems that I never ever will have to worry about CMYK values as they don't seem to be used anywhere in matplotlib as a search on the website for cmyk suggests. --Nico On Tue, Dec 13,

Re: [Matplotlib-users] get_facecolor() returns 4-tuple, contains RGB values?

2011-12-13 Thread Benjamin Root
On Tue, Dec 13, 2011 at 3:55 PM, Nico Schlömer nico.schloe...@gmail.comwrote: RGB and RGBA are sequences of, respectively, 3 or 4 floats in the range 0-1. That would explain it. It also seems that I never ever will have to worry about CMYK values as they don't seem to be used anywhere in

Re: [Matplotlib-users] contourf: matplotlib.path.Path are LINETOs?

2011-12-13 Thread Eric Firing
On 12/13/2011 11:03 AM, Nico Schlömer wrote: Hi all, when drawing contourf plots, I inspected the underlying matplotlib.path.Path elements that determine the curves and noticed that they are all of code LINETO (see http://matplotlib.sourceforge.net/api/path_api.html#matplotlib.path.Path)

Re: [Matplotlib-users] moving marker line under mouse

2011-12-13 Thread Sven Duscha
Hi, For anyone still interested in this topic: I implemented a provisional solution myself, but it turned out that there is indeed already an example for a marker/cursor in the matplotlib documentation. It can be found at