Re: [Matplotlib-users] plotting array with inf

2008-08-05 Thread Eric Firing
John Hunter wrote: > On Tue, Aug 5, 2008 at 7:03 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > >> Matlab ignores it, same as with a nan. > > Although intuitively I think of inf as very different from nan, my > default is to go with matlab like behavior in the absence of > compelling a argument oth

Re: [Matplotlib-users] Feature Request: RectangleSelector BlockingInput

2008-08-05 Thread John Hunter
On Tue, Aug 5, 2008 at 6:26 PM, Elfnor <[EMAIL PROTECTED]> wrote: > This would be really useful for implementing a user image crop function, > similar to matlab's imcrop for example. David, since you are a recent matlab user and are deeply versed in the blocking code: how hard would it be to simp

Re: [Matplotlib-users] plotting array with inf

2008-08-05 Thread John Hunter
On Tue, Aug 5, 2008 at 7:03 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Matlab ignores it, same as with a nan. Although intuitively I think of inf as very different from nan, my default is to go with matlab like behavior in the absence of compelling a argument otherwise. I won't be providing th

[Matplotlib-users] Feature Request: RectangleSelector BlockingInput

2008-08-05 Thread Elfnor
The new ginput function is great. Would it be possible to have a version that looks to the user like a RectangleSelector widget but works for the programmer like ginput? That is, it returns the coordinates of the rectangle. This would be really useful for implementing a user image crop function

Re: [Matplotlib-users] plotting array with inf

2008-08-05 Thread Eric Firing
John Hunter wrote: > On Tue, Aug 5, 2008 at 3:46 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > >> But if I replace the Inf by a nan: y[2] = np.nan, then it plots fine. >> >> I know, I know, I can do this with masked arrays, but it cannot be that hard >> to make this work correctly, and wouldn't tha

Re: [Matplotlib-users] plotting array with inf

2008-08-05 Thread John Hunter
On Tue, Aug 5, 2008 at 3:46 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > But if I replace the Inf by a nan: y[2] = np.nan, then it plots fine. > > I know, I know, I can do this with masked arrays, but it cannot be that hard > to make this work correctly, and wouldn't that be much nicer? Desirable?

Re: [Matplotlib-users] Using matplotlib in Qt4/Qt4 Designer

2008-08-05 Thread B Clowers
Ewald, It is very much a work in progress (and poorly named) but you can check out a project of mine: http://code.google.com/p/subplot/ I created a custom matplotlib widget that you can promote from a regular widget in Designer.  I hope it helps, let me know if you have any questions.  The ui

[Matplotlib-users] get a google map image into matplotlib?

2008-08-05 Thread Mark Bakker
Hello list - There is a recent matlab script floating around that downloads an image from google map and plots it in a matlab figure. Can we do the same? I am sure we can (not sure we want, as Google has been somewhat difficult to people writing scripts to manipulate images from google maps). My

[Matplotlib-users] plotting array with inf

2008-08-05 Thread Mark Bakker
I have a question about plotting an array with an inf. For example: y = np.array([2.,1.,0,1.,2.]) y = 1.0 / y So y is array([ 0.5, 1. , Inf, 1. , 0.5]) When I plot this, I get an error, of which the last line is: OverflowError: math range error I presume the problem is using the autoscale

Re: [Matplotlib-users] 0.98.3 scatter plot color bug?

2008-08-05 Thread Michael Droettboom
This has now been fixed in SVN r5975 and r5976. This should make it into the next official release, or if you can try applying the patches from those SVN revisions. The fixes are a bit scattered, so YMMV. Cheers, Mike Ben Axelrod wrote: > Thanks, > > I think it is great that the color can be

Re: [Matplotlib-users] Using matplotlib in Qt4/Qt4 Designer

2008-08-05 Thread Jonathan Helmus
I've never worked with qt (only wx) but have you checked out the qt embedding examples in the /examples/user_interfaces/ directory? Should be a good start. There is also http://www.scipy.org/Cookbook/Matplotlib/Qt_with_IPython_and_Designer from the matplotlib cookbook which seems to address e

Re: [Matplotlib-users] [matplotlib-devel] matplotlib 0.98.3 release candidate, please test

2008-08-05 Thread Sandro Tosi
On Mon, Aug 4, 2008 at 15:41, Sandro Tosi <[EMAIL PROTECTED]> wrote: > 2008/8/4 Michael Droettboom <[EMAIL PROTECTED]>: >> The graphviz failing is my bad. I failed to test the latex doc build (since >> it never works for me anyway due to a too-old version of latex). This is >> fixed in SVN r5962,

[Matplotlib-users] Using matplotlib in Qt4/Qt4 Designer

2008-08-05 Thread Ewald Zietsman
Hi All, I'd like to use a matplotlib widget in a GUI app I'm working on. I have tried qwt but I know matplotlib a lot better and would like to use it instead. Is there anybody who have done this before? More specifically, does anyone know how to add a matplotlib widget as a custom widget in qt4 de

Re: [Matplotlib-users] Labels sometimes cut off (pie chart)

2008-08-05 Thread Jonathan Hayward, http://JonathansCorner.com
P.S. I have found that I can mitigate the problem by changing the axes: changing, ax = pylab.axes([0.1, 0.1, 0.8, 0.8]) to ax = pylab.axes([0.2, 0.2, 0.6, 0.6]) shrinks almost everything towards the center, meaning that some things no longer get cut off. (But this is at the expense of a small

Re: [Matplotlib-users] Labels sometimes cut off (pie chart)

2008-08-05 Thread Mathieu Leplatre
On Tue, Aug 5, 2008 at 12:21 PM, Jonathan Hayward, http://JonathansCorner.com <[EMAIL PROTECTED]> wrote: > The pie chart sometimes cuts off even relatively short labels that extend > beyond the edge of the image (.1, .1, .8, .8). > > What is the best way to dodge labels getting cut off, or is there

[Matplotlib-users] Labels sometimes cut off (pie chart)

2008-08-05 Thread Jonathan Hayward, http://JonathansCorner.com
The pie chart sometimes cuts off even relatively short labels that extend beyond the edge of the image (.1, .1, .8, .8). What is the best way to dodge labels getting cut off, or is there not much of a good way? TIA, -- -- Jonathan Hayward, [EMAIL PROTECTED] ** To see an award-winning website wi

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-08-05 Thread Mikhail Gusarov
Twas brillig at 15:54:08 03.08.2008 UTC+07 when [EMAIL PROTECTED] did gyre and gimble: MG> As Lenny is already in freeze, I backported fix to 0.4.1 and now MG> trying to get the confirmation from release team to upload it to MG> testing-proposed-updates. sphinx 0.4.1-2lenny1 is now in testing