Re: [Matplotlib-users] question about tight_layout()

2011-10-15 Thread C M
On Sat, Oct 15, 2011 at 10:15 AM, Jae-Joon Lee wrote: > Figure.tight_layout() is a correct way. > Do you see that error only when you use Figure.tight_plot (and not > when you use plt.tight_layout)? > Yes. > What happen you try the script below. > > import matplotlib.pyplot as plt > fig = plt.

Re: [Matplotlib-users] instance check, finding figure elements

2011-10-15 Thread John Hunter
On Sat, Oct 15, 2011 at 10:39 AM, wrote: > I'm building plots in stages using several different functions. Since > the figure contains all information, I don't hand handles to > individual elements around. > > What's the best way to check for a specific plot element? using > isinstance, or are th

[Matplotlib-users] instance check, finding figure elements

2011-10-15 Thread josef . pktd
I'm building plots in stages using several different functions. Since the figure contains all information, I don't hand handles to individual elements around. What's the best way to check for a specific plot element? using isinstance, or are there specific attributes that could be checked? For

Re: [Matplotlib-users] scatter plot without edge color

2011-10-15 Thread Chao YUE
cool. it's done!! Thanks!!! Chao 2011/10/15 Tony Yu > > > On Sat, Oct 15, 2011 at 8:55 AM, Chao YUE wrote: > >> Dear all, >> >> how can I make a scatter plot without edgecolor? >> >> import matplotlib.pyplot as plt >> In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None) >> Out[

Re: [Matplotlib-users] question about tight_layout()

2011-10-15 Thread Jae-Joon Lee
Figure.tight_layout() is a correct way. Do you see that error only when you use Figure.tight_plot (and not when you use plt.tight_layout)? What happen you try the script below. import matplotlib.pyplot as plt fig = plt.figure(1)ax = fig.add_subplot(111)fig.tight_layout() Regards, -JJ On Sat, O

Re: [Matplotlib-users] scatter plot without edge color

2011-10-15 Thread Tony Yu
On Sat, Oct 15, 2011 at 8:55 AM, Chao YUE wrote: > Dear all, > > how can I make a scatter plot without edgecolor? > > import matplotlib.pyplot as plt > In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None) > Out[110]: > > in this case I can use edgecolor='w' to solve it, but when

Re: [Matplotlib-users] scatter plot without edge color

2011-10-15 Thread Durrieu Jean-Louis
Hi Chao! On Oct 15, 2011, at 2:55 PM, Chao YUE wrote: > import matplotlib.pyplot as plt > In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None) > Out[110]: > > in this case I can use edgecolor='w' to solve it, but when points overlap, > this does not work anymore. > Any help will

[Matplotlib-users] scatter plot without edge color

2011-10-15 Thread Chao YUE
Dear all, how can I make a scatter plot without edgecolor? import matplotlib.pyplot as plt In [110]: plt.scatter(np.arange(10),np.arange(10,20),edgecolor=None) Out[110]: in this case I can use edgecolor='w' to solve it, but when points overlap, this does not work anymore. Any help will be appre