Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-12 Thread Geoff Bache
Many thanks for the suggestions, will try these out today. Incidentally, it looks like there is an interesting bug in the mail archive software. Viewing my original message there I can see that it has removed all instances of the combination pre (that's p then r then e if it eats this too!). It

[Matplotlib-users] How to blank an area of the canvas?

2010-02-12 Thread Brendan Barnwell
I'm trying to find the quickest way to erase a rectangular area of the figure canvas. I tried using canvas.restore_region with the optional bbox argument, but there seems to be some mismatch between the measurement units of the saved buffer object and the currently shown data. For

Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-12 Thread Geoff Bache
On Thu, Feb 11, 2010 at 4:58 PM, John Hunter jdh2...@gmail.com wrote: On Thu, Feb 11, 2010 at 9:43 AM, Geoff Bache geoff.ba...@jeppesen.com wrote: Hi all, I'm trying to generate graphs from my test results, with regions coloured with succeeded and failing tests. It nearly works, but I have

[Matplotlib-users] 16bit tiff support?

2010-02-12 Thread Philipp Lies
Hi, is there a backend that supports 16bit tiff images? According to the website GDK supports tiff but that's wrong: import matplotlib matplotlib.use('GDK') import matplotlib.pyplot as pyplot pyplot.imsave(arr=X, fname='test.tif') Traceback (most recent call last): File stdin, line 1, in

Re: [Matplotlib-users] Maximize plotwindow hot to plot figure by figure?

2010-02-12 Thread Matthias Michler
On Friday 12 February 2010 00:36:41 zxc wrote: 2 Problems: 1. How is it possible to maximize the window of the plot? If the window is open and you are in the mainloop ypu can press ' f ' for fullscreen mode. Furthmore you can modify the figure-size by figure(figsize=(16, 8)) 2. First I want

Re: [Matplotlib-users] Selectable contour(f) divisions

2010-02-12 Thread Matthias Michler
Hi Bruce, why don't you use contour as in the following ;-) contour(X,Y,Z,V) # - draw contour lines at the values specified in sequence *V* like in x, y = np.meshgrid(np.linspace(0, 1, 100), np.linspace(0, 1, 50)) z = x**4 - x**2 + np.sin(y) contour(x, y, z, [-0.2, 0.0, 0.2, 0.4, 0.6, 0.8])

Re: [Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-12 Thread Stephan Markus
Calling the garbage collector (gc.collect()) also makes no difference. Even deleting all references manually and dropping the toolbar code doesn't do the trick. Am 09.02.2010 16:19, schrieb Stephan Markus: I already had my destroy() method look like this: def destroy(self):

Re: [Matplotlib-users] Selectable contour(f) divisions

2010-02-12 Thread Bruce Ford
Thanks for this. I didn't realize that N could be an array and contour would know that these are the levels desired. I found similar in an example, but not in the contour documentation. Thanks so much! Bruce --- Bruce W. Ford Clear Science, Inc.

Re: [Matplotlib-users] Selectable contour(f) divisions

2010-02-12 Thread Matthias Michler
On Friday 12 February 2010 15:11:17 Bruce Ford wrote: Thanks for this. I didn't realize that N could be an array and contour would know that these are the levels desired. I found similar in an example, but not in the contour documentation. Just a remark: I use the help of IPython to

Re: [Matplotlib-users] x,y ticklabel too close

2010-02-12 Thread Filipe Pires Alvarenga Fernandes
Thanks for all the suggestions, Spines did the trick. JJ, I would like to be able to contribute more, but my python knowledge is very limited and I'm still a very Matlab oriented person. Anyways, maybe people here might be interested in my recent adventure trying to learn python. I converted

[Matplotlib-users] PyCon

2010-02-12 Thread Ben Axelrod
Is anyone planning on attending PyCon in Atlanta next week? http://us.pycon.org/2010/about/ -Ben Ben Axelrod Robotics Engineer (800) 641-2676 x737 [cid:484541315@12022010-129E] www.coroware.comhttp://www.coroware.com/ www.corobot.nethttp://www.corobot.net/ inline:

[Matplotlib-users] How to draw a rectangle using event handler ?

2010-02-12 Thread Yagua Rovi
Hello world! I am displaying on my screen a set of data corresponding to points defined by a longitude and latitude. The display is fine with the command imshow (mydata ,...) I would like now associate to the application a callback that draw a rectangle on two consecutive left mouse's button

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib? (PUG)

2010-02-12 Thread Wayne Watson
I'm beginning to read aboutPython OOP, classes, inheritance and the like. It seems like an understanding of those concepts is key to understanding how the import needs are met. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why

[Matplotlib-users] My matplotlib To-Do List

2010-02-12 Thread Wayne Watson
I think I need a time out to consider my recent posts. This particular mod can wait while I get to other priority items into action again. So here's my list of thing to do when I come back to it. Check out ipython more thoroughly. Examine the backend concept Read about the MPL interactive mode.

[Matplotlib-users] Why do xticklabels and yticklabels always collide?

2010-02-12 Thread Jeremy Conlin
My biggest problem with matplotlib is that the smallest yticklabel and the smallest xticklabel always seem to lie on top of each other (or close to it). See attachment for example. Is there anyway to make it so these don't lie on top of each other? How can I make this the default behavior?

Re: [Matplotlib-users] Why do xticklabels and yticklabels always collide?

2010-02-12 Thread Jeremy Conlin
On Fri, Feb 12, 2010 at 11:30 AM, C M cmpyt...@gmail.com wrote: My biggest problem with matplotlib is that the smallest yticklabel and the smallest xticklabel always seem to lie on top of each other (or close to it).  See attachment for example.  Is there anyway to make it so these don't lie

[Matplotlib-users] figure aspect ratio

2010-02-12 Thread Tomasz Koziara
Hi I would like to have a bar plot twice as heigh as it is wide. It seems though that setting the aspect ratio is nontrivial. I tried this: w, h = fig.figaspect (2.0) plt.figure().set_figheight (h) plt.figure().set_figwidth (w) but then axis labels or even numbering gets cut off. On

Re: [Matplotlib-users] 16bit tiff support?

2010-02-12 Thread Eric Firing
Philipp Lies wrote: Hi, is there a backend that supports 16bit tiff images? Can you just use png, and use the netpbm utilities or ImageMagick convert program to go to and from tiff? Eric According to the website GDK supports tiff but that's wrong: import matplotlib

[Matplotlib-users] [SOT; Announce] Info about the API used in finance.quotes_historical_yahoo

2010-02-12 Thread David Goldsmith
Hi! Originally, this was to be a question about where to get that described in the subject, but I realized: hey, it's a yahoo! service and I haven't searched yahoo! yet; sure enough I easily found: http://www.gummy-stuff.org/Yahoo-data.htm Jackpot! All the free, detailed numerical stock data

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib? (PUG)

2010-02-12 Thread Gökhan Sever
On Fri, Feb 12, 2010 at 10:37 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I'm beginning to read aboutPython OOP, classes, inheritance and the like. It seems like an understanding of those concepts is key to understanding how the import needs are met. -- Crime is way down. War is

Re: [Matplotlib-users] make autoscale_view even less tight?

2010-02-12 Thread C M
On Fri, Feb 12, 2010 at 2:24 PM, Stan West stan.w...@nrl.navy.mil wrote: From: C M [mailto:cmpyt...@gmail.com] Sent: Wednesday, February 03, 2010 21:59 I'm using autoscale_view for the y axis, but find with a marker size about 10, it will autoscale the graphs such that some markers are

[Matplotlib-users] help with a custom formatter

2010-02-12 Thread C M
I would like a custom formatter that does 3 things: 1) Blanks out all the values less than 0. 2) Chooses appropriate major ticks when zoomed out. 3) Shows an integer when the zoom scale is revealing multiple integers, but shows a decimal number when it is just showing within one integer; i.e. if

Re: [Matplotlib-users] My matplotlib To-Do List

2010-02-12 Thread Wayne Watson
Thanks. True enough. I've been exploring that possibility, and it is probably the way to go. When I get a little further down the line, I'll probably distribute it that way. On 2/12/2010 9:35 AM, Christopher Barker wrote: Wayne Watson wrote: So here's my list of thing to do when I

[Matplotlib-users] Down Another Pathway with Plot-Show

2010-02-12 Thread Wayne Watson
Certainly in IDLE, when one hits a show() in a def, the program does not continue to the next statement. It goes somewhere else, because my program continues normally. Apparently, it goes back up the def calls to the main program, which is a loop that just reads the next file to perform more