Re: [Matplotlib-users] Legend grows in wrong direction

2009-02-26 Thread Søren Nielsen
Thanks JJ! It does, and you are exactly right, letting the legend "grow" downward while holding the value of the lower left corner doesn't make sense.. I tried calculating an offset, but the patch is a much nicer fix! Soren On Thu, Feb 26, 2009 at 9:27 PM, Jae-Joon Lee wrote: > On Thu, Feb 26,

Re: [Matplotlib-users] polar graph

2009-02-26 Thread bubye
I made a little more progress, but i'm not sure i'm doing this the right way. Suggestions? from pylab import * import numpy as np #generate random temperature data snp=[] for i in range(0,65): snp.append(np.random.randint(35,122)) #hide the labels. I don't want them. rc('xtick', labelsize=0

Re: [Matplotlib-users] pylab_examples image_clip_path.py not working for pdf

2009-02-26 Thread Jouni K . Seppänen
Haibao Tang writes: > Any ideas? Yes, image clipping was unimplemented in the pdf backend. I added an implementation (both on the trunk and on the 0.98.5 branch) that at least gets this example and the dolphin right - please test it if you have some other use case. -- Jouni K. Seppänen http://

Re: [Matplotlib-users] Legend grows in wrong direction

2009-02-26 Thread Jae-Joon Lee
On Thu, Feb 26, 2009 at 4:51 AM, Søren Nielsen wrote: > I've tried placing a legend using the loc = (x,y) .. and the legend is moved > where I want it. the problem is, when I add new lines to the plot.. the > legend grows, but upwards.. so the lower left point of the legend box is > constant.. but

[Matplotlib-users] Check if figure exists

2009-02-26 Thread Christopher Brown
Hi, If I have a figure: h = pp.figure(num=14) What is the best way to check to see if Figure 14 exists? I'm writing a function that adds plots to a figure window. I want the function to check if the figure exists, and if so, turn off autoscaling (using Eric's suggested axes.set_autoscale_on(F

[Matplotlib-users] polar graph

2009-02-26 Thread bubye
Hi, i'm wondering if there is an easy way to fill the background in a polar graph with a specific color. If I were making a pie graph, it'd be something like: pie([70,20,10]), where the first 70% is green, the next 20, yellow, and the last 10, red. I've been experimenting with polar graphs usin

Re: [Matplotlib-users] Keeping a zoomed view when adding to a plot

2009-02-26 Thread Eric Firing
Aaron R> wrote: > I have an app which adds data to a plot. Everything is working, but > when I add data to a plot that was zoomed in, it switches the display > to a zoomed out view. > > def addData(self, xdata, ydata): > # Need to save off current zoom level before adding new plot data

Re: [Matplotlib-users] Bug in Fill_Between?

2009-02-26 Thread Ryan Wagner
Just a follow-up: I managed to interpolate this problem away... interpolated = [] iinds = [] for i in range(len(stockData.rinds)-1): interpolated.append(s[stockData.rinds[i]]) iinds.append(stockData.inds[i]) interpolated.append((s[stockData.rinds[i]]*3.

[Matplotlib-users] Keeping a zoomed view when adding to a plot

2009-02-26 Thread Aaron R>
I have an app which adds data to a plot. Everything is working, but when I add data to a plot that was zoomed in, it switches the display to a zoomed out view. Here's a code snippet: class MyPlotFrame(Frame): def __init__(self): Frame.__init__(self,None,-1,

[Matplotlib-users] pylab_examples image_clip_path.py not working for pdf

2009-02-26 Thread Haibao Tang
See http://matplotlib.sourceforge.net/examples/pylab_examples/image_clip_path.html ... and click on pdf Any ideas? Haibao -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the

[Matplotlib-users] Legend grows in wrong direction

2009-02-26 Thread Søren Nielsen
Hi, I've tried placing a legend using the loc = (x,y) .. and the legend is moved where I want it. the problem is, when I add new lines to the plot.. the legend grows, but upwards.. so the lower left point of the legend box is constant.. but that's not the logical way for a legend box to grow.. sho