Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-05-13 Thread Jae-Joon Lee
This is now committed to svn trunk, with slight changes in its api. An example is added (examples/animation/animation_blit_gtk2.py). -JJ -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your producti

Re: [Matplotlib-users] Matplotlib crashes my GTK program

2009-05-13 Thread David Snowdon
I've managed to work around the problem by: - always allocating the requested size to the various widgets - not rotating annotation labels vertically. This was just by trial and error, but it seems to work now...? Dave. -- David Snowdon d...@snowdon.id.au http://www.snowdon.id.au

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-13 Thread Gökhan SEVER
One more point to add. I issued one more boxplot with prctile(data) (a mlab command which boxplot calls internally to calculate percentiles) as an argument to it. Guess what? I get almost the same as in initially I have :) without a lower whisker. I don't know I am confusing myself or is it the

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-13 Thread Gökhan SEVER
Ok, With this figure, it is clearer to see what's wrong with two of my boxplots. I pull the original data and feed boxplot with it. The 1st boxplot is using only quartiles and the next is providing the actual data array. http://img140.imageshack.us/img140/4705/boxplots.png To me the second boxp

Re: [Matplotlib-users] Stick Plot?

2009-05-13 Thread Christopher Barker
Eric Firing wrote: Christopher Barker wrote: Has anyone used MPL to make stick plots? If so, can I borrow your code? If no one volunteers anything, then I suggest using quiver(..., headlength=0, headwidth=0, headaxislength=0), together with quiverkey(...). This will effectively give you a s

Re: [Matplotlib-users] Changing sensitivity of mouse hover readings

2009-05-13 Thread Gökhan SEVER
Nop John, I was just wondering whether my assignment syntactically correct in Python or a missing feature in matplotlib. Gökhan On Wed, May 13, 2009 at 2:23 PM, John Hunter wrote: > On Wed, May 13, 2009 at 2:15 PM, Gökhan SEVER > wrote: > > Hmm, Thank you for the guidance John :) > > > > def

[Matplotlib-users] Sourceforge project nominations

2009-05-13 Thread Kaushik Ghose
Hi Gang, As you may know, Sourceforge hosts a Community Choice Awards thing (http://sourceforge.net/community/cca09/). If you really like matplotlib I would encourage you to nominate it for an award (I chose the "Best Project for Academia" category). The nomination page is here (http://source

[Matplotlib-users] Uneven line spacing

2009-05-13 Thread Ng, Enrico
I am using figtext() to add text to a figure. I have noticed that with muti-line text, the linespacing will look uneven due to letters which extend below. For example: figtext(0,0,"ppp\naaa\nggg\nsss") Will look something like this (exaggerated) ppp aaa ggg Sss With a larger space under lett

[Matplotlib-users] Canvas in wx.ScrolledPanel

2009-05-13 Thread Thomas Coudrat
Hello list, I am new here an i need help on something : I am using Matplotlib in the wxPython GUI, and i am trying to draw a BIG canvas, in a SMALL window, which would be scrollable. My implementation works if i use simple text too long for the size of the window (see example file) But the problem

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Armin Moser
Sebastian Busch wrote: > Matthias Michler wrote: >> ... >> for i in xrange(len(matrix3[:, 0])): # all rows >> for j in xrange(len(matrix3[0, :])):# all columns >> ... > > if your matrices a and b are rectangular (and i think the "diagonal" > makes only sense in this case), you can also say: >

[Matplotlib-users] automatic scatter marker size

2009-05-13 Thread Nick Touran
Hi, I would like to show color maps of various shapes such as hexagons or squares. I've been able to do this with the scatter function but I'm having trouble with the size argument. I always have to adjust the size of my window until the shapes line up just how I want them to. I realize size is sp

Re: [Matplotlib-users] Changing sensitivity of mouse hover readings

2009-05-13 Thread John Hunter
On Wed, May 13, 2009 at 2:15 PM, Gökhan SEVER wrote: > Hmm, Thank you for the guidance John :) > > def myformat(x): > return '%1.2f'%x > > axes().fmt_xdata = myformat works like you said. > > How can I join x and y in one function? The following line gives me a syntax > error. > > def myform

Re: [Matplotlib-users] Changing sensitivity of mouse hover readings

2009-05-13 Thread Gökhan SEVER
Hmm, Thank you for the guidance John :) def myformat(x): return '%1.2f'%x axes().fmt_xdata = myformat works like you said. How can I join x and y in one function? The following line gives me a syntax error. def myformat(x, y): return '%1.2f'%x, '%1.2f'%y axes().(fmt_xdata, fmt_ydat

Re: [Matplotlib-users] Changing sensitivity of mouse hover readings

2009-05-13 Thread John Hunter
On Wed, May 13, 2009 at 1:39 PM, Gökhan SEVER wrote: > Hello, > > Is there a way to change the resolution of x and y readings (while hovering > the mouse inside the canvas area) from the status bar of a plot window? > > Currently x show 2 or 3 digits after 0, while y only increments at 0.1 or 1 >

Re: [Matplotlib-users] problem with usetex & \color

2009-05-13 Thread Jae-Joon Lee
Hmm, I have no idea what is wrong and I'm afraid that there is not much I can do. ps backend undergoes several steps (tex - dvi - ps - [distiller]) to produce the final output, and it is hard to track down the problem without actually reproducing one. Just in case, can you change your distiller op

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-13 Thread Gökhan SEVER
Thank you for the response once again. That's why I am suspecting actually the raw data. At the problem points there might be not included values or missing values where not exist on the normal plots. I will find the original data and feed boxplot with it to see how it effects the final result.

[Matplotlib-users] Changing sensitivity of mouse hover readings

2009-05-13 Thread Gökhan SEVER
Hello, Is there a way to change the resolution of x and y readings (while hovering the mouse inside the canvas area) from the status bar of a plot window? Currently x show 2 or 3 digits after 0, while y only increments at 0.1 or 1 depends on the number. Can we set these based on our needs? Than

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-13 Thread Josh Hemann
Thanks for sending the data and code. After playing around some I still don't have a confident guess as to the problem (or solution), but here is what I would look at more... I issued plot(d[i][8:]) for i 0,1,...11 and looked at the shape of the lines. For the two problem boxes, the plots of

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Sebastian Busch
Matthias Michler wrote: > ... > for i in xrange(len(matrix3[:, 0])): # all rows > for j in xrange(len(matrix3[0, :])):# all columns > ... if your matrices a and b are rectangular (and i think the "diagonal" makes only sense in this case), you can also say: array([list(a[i,:i])+list(b[i,i:]) f

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Matthias Michler
Hi Bala, I'm not sure I understand, what you want, but maybe the following goes towards your direction # initialise two matrices with data matrix1 = ones((4,4)) matrix2 = 2*ones((4,4)) # and one empty matrix matrix3 = zeros((4, 4)) for i in xrange(len(matrix3[:, 0])): # all rows for j in x

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Armin Moser
Bala subramanian schrieb: > hai Armin, > > I looked through the examples. I could not find any example of overlapping > two differnet countours on the same plot. I think the first example filled contours does exactly that. You want to show two contours over each other in the same plot. You just ha

Re: [Matplotlib-users] Matplotlib crashes my GTK program

2009-05-13 Thread João Luís Silva
David Snowdon wrote: > Hi all, > > This will probably end up being my very silly mistake, but at the > moment, Matplotlib crashes my program with an X error whenever my window > isn't expanded far enough. > > For those interested, it is a front-end for the strategy and analysis > software for

Re: [Matplotlib-users] Subplots

2009-05-13 Thread Stefanie Lück
Thanks a lot! Problem solved! Stefanie - Original Message - From: "Matthias Michler" To: Sent: Wednesday, May 13, 2009 2:16 PM Subject: Re: [Matplotlib-users] Subplots > Hello Stefanie, > > I think the problem is that you try to initialise a subplot with > subplot(112) > which is not p

Re: [Matplotlib-users] Subplots

2009-05-13 Thread Matthias Michler
Hello Stefanie, I think the problem is that you try to initialise a subplot with subplot(112) which is not possible, because the first to numbers in 112 define the subplot structure / geometry (here 1 by 1) and the last number give the index of the subplot. In general you could use N x M (N rows

[Matplotlib-users] Subplots

2009-05-13 Thread Stefanie Lück
Hello! I'm trying to draw several plots on after the other in a wxScrolledPanel but I got the error message: Traceback (most recent call last): File "D:\Eigene Datein\Python\current\RNAiscan\Test\sample.py", line 96, in frame = MyFrame() File "D:\Eigene Datein\Python\current\RNAiscan\Te

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Armin Moser
Bala subramanian schrieb: > Dear Matthias, > > Thank you for the information. Could you please provide me a small example > of such overlapping. Look at http://matplotlib.sourceforge.net/examples/pylab_examples/contour_image.html or any other contour example from this page: http://matplotlib.sour

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Bala subramanian
Dear Matthias, Thank you for the information. Could you please provide me a small example of such overlapping. Thanks, Bala On Wed, May 13, 2009 at 1:50 PM, Matthias Michler wrote: > Hi Bala, > > On Wednesday 13 May 2009 13:16:17 Bala subramanian wrote: > > Friends, > > > > I have two matrices

Re: [Matplotlib-users] contour overlapping

2009-05-13 Thread Matthias Michler
Hi Bala, On Wednesday 13 May 2009 13:16:17 Bala subramanian wrote: > Friends, > > I have two matrices of same size. I used contourf to create the countour > plots for the two matrices separately. > > i) I am interested in making one countour plot marking the areas which are > different in both th

[Matplotlib-users] contour overlapping

2009-05-13 Thread Bala subramanian
Friends, I have two matrices of same size. I used contourf to create the countour plots for the two matrices separately. i) I am interested in making one countour plot marking the areas which are different in both the countours or ii) Overlapping one countour over the other, so that i can compa

Re: [Matplotlib-users] continous colormap with 'plateau'

2009-05-13 Thread Eric Firing
Christian K. wrote: > Eric Firing schrieb: >> Christian K. wrote: >>> Hi everyone, >>> >>> is it possible to map a certain range within the value-range of a image >>> plot to >>> a constant value? Currently I am overlaying a filled contour plot with just >>> two >>> contour levels on top of an

Re: [Matplotlib-users] problem with usetex & \color

2009-05-13 Thread Matthias Michler
Hi Jae-Joon, I updated to svn-revision 7099 and the problem (hidden part of b) still exists. Do you have any idea what I'm doing wrong? Thanks in advance for any hints. best regards Matthias On Tuesday 12 May 2009 20:46:06 Jae-Joon Lee wrote: > On Tue, May 12, 2009 at 5:04 AM, Matthias Michl