Re: [Matplotlib-users] forcing prompt draw

2011-06-24 Thread Eric Firing
On 06/24/2011 04:03 AM, Jonathan Slavin wrote: > import matplotlib.pyplot as plt > plt.ion() > fig = plt.gcf() > for obsid in obsids: > > plt.cla() > fig = plt.gcf() > ax = fig.add_axes([0.15,0.1,0.8,0.6]) > ax.plot(x,y) > plt.draw() > ans = raw_input('continue?

Re: [Matplotlib-users] ipython intermittently segfaults when figure is closed.

2011-06-24 Thread Eric Firing
On 06/24/2011 07:19 AM, Kaushik Ghose wrote: > Hi, > > I don't know for sure if this is matplotlib's fault. ipython's fault or Mac OS > X, but I ever since I upgraded to matplotlib 1.0.1 I have this problem that > ipython will exit with segfault after I close a figure. What version of ipython are

[Matplotlib-users] ipython intermittently segfaults when figure is closed.

2011-06-24 Thread Kaushik Ghose
Hi, I don't know for sure if this is matplotlib's fault. ipython's fault or Mac OS X, but I ever since I upgraded to matplotlib 1.0.1 I have this problem that ipython will exit with segfault after I close a figure. I have not found what exactly causes the crash, but it can happen with the simp

[Matplotlib-users] forcing prompt draw

2011-06-24 Thread Jonathan Slavin
To all: I'm doing a series of fits and want to display the results of each in a figure before I go to the next one. I currently do roughly something like this (with a lot left out): import matplotlib.pyplot as plt plt.ion() fig = plt.gcf() for obsid in obsids: plt.cla() fig = plt.gc

Re: [Matplotlib-users] How to change the frame size of legend?

2011-06-24 Thread wiswit
and also, how can I make only one point for the scatter legend? if I use leg=ax1.legend(loc='upper left', numpoints=1) all the lines will disapper too... wiswit wrote: > > Dear all, > > I've made a plot (as attached). The problem is the frame of the legeng is > too big that It covers some

[Matplotlib-users] How to change the frame size of legend?

2011-06-24 Thread wiswit
Dear all, I've made a plot (as attached). The problem is the frame of the legeng is too big that It covers some part of the lines in the figure. I used a 'x-samll' font size in the legend text, but the problem is that the space between the lines of different texts is too big that the whole frame