# 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 (geosta
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
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
again
On Mon, Dec 12, 2011 at 7:05 PM, C Barrington-Leigh wrote:
> 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
> Here it is:
> """
> B
*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 font
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]
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 p
On Mon, Dec 12, 2011 at 7:03 PM, Benjamin Root wrote:
> On Sat, Dec 10, 2011 at 10:36 AM, Alex Naysmith
> wrote:
>
>> Hello,
>>
>> I'm trying to plot the stresses in colour of a strained isoparametric
>> element.
>>
>> I have a six noded triangle with vertice coordinates
>> [(xa1,ya1),(xa2,ya2),
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 fu
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 par
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 suggest
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
repr
2011/12/13 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*
> "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
On Tue, Dec 13, 2011 at 3:55 PM, Nico Schlömer wrote:
> > "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 s
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
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
http://matplotlib.sourceforge.net/examples/pylab_examples/curso
17 matches
Mail list logo