Re: [Matplotlib-users] how fix axes position by using set_position method?

2012-06-14 Thread wiswit
using axes.set_anchor will do the trick. chao wiswit wrote: > > Dear all, > > I think this is quite easy but I searched the internet and mailing list > and > not able to find an answer. > ax2 is an inset axes within the "ax" axes in figure "fig&qu

Re: [Matplotlib-users] confusion with axes.set_ratio

2012-06-14 Thread wiswit
so, I didn't notice the axes.set_anchor method. This will do the trick. Chao wiswit wrote: > > Dear all, > > asking question in a good way is art and I am trying to do that :-). I > spent whole day trying to put an inset axes within another hosting axes > the > ex

[Matplotlib-users] how to set popup window always on top?

2012-06-12 Thread wiswit
Dear all, Is there a way that I can set the popup window that appears when I issue a plotting command always on top? cheers, Chao -- View this message in context: http://old.nabble.com/how-to-set-popup-window-always-on-top--tp34000345p34000345.html Sent from the matplotlib - users mailing li

Re: [Matplotlib-users] What is your matplotlib workflow?

2012-06-12 Thread wiswit
thanks for these great work. Chao Fernando Perez wrote: > > On Mon, Jun 11, 2012 at 2:05 PM, wiswit wrote: >> While in emacs or vim, you cannot simple select lines and execute them, >> so >> you have to frequently copy and code and use %cpaste or %paste to paste >> the

Re: [Matplotlib-users] What is your matplotlib workflow?

2012-06-11 Thread wiswit
I think this is worth discussing. But I have only 1.3 years experience with matplotlib and python. Basically, I do the same as you. But I think there are few tips I would like to follow: 1. I would agree to make one major theme plot one script file. Avoid make very long scripts with many plots. I

Re: [Matplotlib-users] get colorlist and values from existing matplotlib colormaps?

2012-06-05 Thread wiswit
Thanks Eric. This is quite an informative answer about colormap! The first part of the answer is exactly what I need. cheers, Chao efiring wrote: > > On 06/02/2012 03:37 AM, Chao YUE wrote: >> Dear all, >> >> I find I would like to make some change from the existing colormaps. for >> exampl

Re: [Matplotlib-users] how to remove colorbar?

2012-05-22 Thread wiswit
Thanks Jerzy. It works fine. I may return to this topic for more discussion later. chao Jerzy Karczmarczuk-2 wrote: > > Benjamin Root : >> Colorbars are a bit tricky. They are actually a subplot axes separate >> from your plotting axes. And I don't think they are very easy to >> remove.

[Matplotlib-users] numpoints in legend() function for scatter plot is not working in matplotlib 1.1.0?

2012-04-10 Thread wiswit
Dear all, I found that the numpoints in legend function for scatter plot is not working? import matplotlib as mat import matplotlib.pyplot as plt In [59]: mat.__version__ Out[59]: '1.1.0' #ordinary plot working fig=plt.figure() ax=fig.add_subplot(111) ax.plot(np.arange(10),'ro',label='tst') ax.

[Matplotlib-users] markeredgecolor (mec) in the plot function not working?

2012-04-10 Thread wiswit
Dear all, I use matplotlib 1.1.0. import matplotlib.pyplot as plt plt.plot(np.arange(10),'ro',mec='none') when I use plt.show(), there is only blank frame with axis not no points. but plt.plot(np.arange(10),'ro') will give good plot with read filled circles and black edges. plt.scatter(np.ar

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

[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