Re: [Matplotlib-users] How to make a bi-variate or 2-dimension colormap?

2016-07-29 Thread Chao YUE
://stackoverflow.com/questions/15207255/is-there-any-way-to-use-bivariate-colormaps-in-matplotlib https://github.com/matplotlib/matplotlib/issues/4369 Thanks a lot in advance for any suggestions, Cheers, Chao On Mon, Jul 25, 2016 at 4:34 PM, Chao YUE wrote: > Dear all matplotlib users, >

Re: [Matplotlib-users] How to set marker for a specific point in a scatter plot with colormap?

2016-07-11 Thread Chao YUE
OK, after posting I realize I can pass a vector to the 's' keyword in plt.scatter to set the marker size, like s=[20,20,20,20,20,50,20,20,20,20]. How about using a different marker type? Thanks! Regards, Chao On Mon, Jul 11, 2016 at 10:27 PM, Chao YUE wrote: > Dear all matplotlib

[Matplotlib-users] How to set marker for a specific point in a scatter plot with colormap?

2016-07-11 Thread Chao YUE
s.org/ *** Chao YUE postdoc at LSCE CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX Tel: 33 1 69 08

[Matplotlib-users] How can I add parallel tick labels for north polar stereographic map?

2015-12-17 Thread Chao YUE
ed as an original polar plot in matplotlib. Thanks a lot in advance! [image: Inline image 1] -- please visit: http://www.globalcarbonatlas.org/ *** Chao YUE postdoc at LSCE CEA-Ormes des Merisiers, F-91191 GIF-SUR-Y

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-23 Thread Chao YUE
; Ben Root > > > On Mon, Apr 21, 2014 at 5:03 PM, Chao YUE wrote: > >> Yes, in fact I set dpi as 1000, which is already very high. In fact I >> have another question, will there be any difference if I use the save >> button on the interactive plotting toolbar an

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Chao YUE
ers, Chao On Mon, Apr 21, 2014 at 11:03 PM, Chao YUE wrote: > Yes, in fact I set dpi as 1000, which is already very high. In fact I have > another question, will there be any difference if I use the save button on > the interactive plotting toolbar and use the command line > figur

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Chao YUE
Your Intranet Into A Collaboration Platform >>>> http://p.sf.net/sfu/ExoPlatform >>>> ___ >>>> Matplotlib-users mailing list >>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43262&i=2>

[Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-19 Thread Chao YUE
heers, Chao -- please visit: http://www.globalcarbonatlas.org/ *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE

Re: [Matplotlib-users] Fwd: Strange behaviour on plotting data on Ronbinson projection using Basemap

2014-04-16 Thread Chao YUE
t; But might be better if it did: > >def makegrid(self,nx,ny,returnxy=False): > x = np.linspace(self.llcrnrx, self.urcrnrx, nx) > y = np.linspace(self.llcrnry, self.urcrnry, ny) > > To avoid the multiplicative floating point drift that is currently being > seen. > >

Re: [Matplotlib-users] How to put the label above horizontal colorbar?

2014-03-20 Thread Chao YUE
users@lists.sourceforge.net/msg07447.html > > > --- > *Arnaldo D'Amaral Pereira Granja Russo* > Lab. de Estudos dos Oceanos e Clima > Instituto de Oceanografia - FURG > > > > > 2014-03-10 14:39 GMT-03:00 Chao YUE : > >> Dear all, >> >> I am using

Re: [Matplotlib-users] How can I put a white area in the middle of colorbar showing the masked data?

2014-03-01 Thread Chao YUE
sorry, the attached file may lack surfix type, here is the correct one. Cheers, chao On Sat, Mar 1, 2014 at 8:57 PM, Chao YUE wrote: > Dear all, > > In many cases in geoscience mapping we want to show the some missing values > as some special color in the colorbar. like attache

[Matplotlib-users] How can I put a white area in the middle of colorbar showing the masked data?

2014-03-01 Thread Chao YUE
#x27;t know how to make this work when I call the colorbar method. Is there anyone who have the some successful experience? Thanks a lot in advance! Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'

Re: [Matplotlib-users] could I get rid of the contour of Antarctica by using Basemap?

2013-12-31 Thread Chao YUE
toolkit so I can't comment on the removal >> of continents, but presumably the text command you are using takes some >> keywords to set the properties of the bounding box. Try setting the >> background of the bounding box to white so that your words show up cleanly. >>

[Matplotlib-users] could I get rid of the contour of Antarctica by using Basemap?

2013-12-30 Thread Chao YUE
showing why I would like to have this. thanks for any help, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur Y

[Matplotlib-users] Strange behavior for lognorm colorbar with extend as both

2013-09-25 Thread Chao YUE
orientation='horizontal',\ pad=0.02) plt.show() Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - P

[Matplotlib-users] how to make mat.figure.Figure.add_axes generated axes adjustable with the interactive tool?

2013-07-25 Thread Chao YUE
eally useful when you want to have figures quickly. thanks a lot for any hints. cheers, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 71

Re: [Matplotlib-users] how to make a colorbar starting with a different color?

2013-07-02 Thread Chao YUE
One way I could think of is to make two contingent mat.axes.Axes, with a smaller one setting as white backgroud, and the other bigger on holding the colorbar. Is there some better way? Chao On Tue, Jul 2, 2013 at 12:12 PM, Chao YUE wrote: > Dear all, > > Does anyone have similar e

[Matplotlib-users] quickly return colorbar ticks?

2013-07-02 Thread Chao YUE
Dear all matplotlib users, I found there is not a get_ticks method available for colorbar instance, how could I quick get the ticks of a colorbar? thanks, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et

[Matplotlib-users] A very simple wrapper of part of the 2D plot functions in matplotlib

2013-05-01 Thread Chao YUE
ewer.ipython.org/ to check it. cheers, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE

Re: [Matplotlib-users] confused by savefig.dpi and how can I set the dpi of jpeg format?

2013-03-13 Thread Chao YUE
Dear Goyo, Thanks for your information. I finally change them into pdf but not used yet. Otherwise I will try png format. cheers, Chao On Wed, Mar 13, 2013 at 6:54 PM, Goyo wrote: > 2013/3/11 Chao YUE : > > Dear all, > > > > I searched the internet but still get confuse

[Matplotlib-users] confused by savefig.dpi and how can I set the dpi of jpeg format?

2013-03-11 Thread Chao YUE
and now is working on my first one. So I don't know if this procedure is good or not. but anyway, how can I save jpg figures with dpi >300 with the normal size I see on the screen? thanks for the help, Chao -- *********

Re: [Matplotlib-users] cannot directly reply to the mail?

2013-01-24 Thread Chao YUE
thanks Paul. You're right, I changed the setting, should work now. Chao On Thu, Jan 24, 2013 at 7:36 PM, Paul Hobson wrote: > On Thu, Jan 24, 2013 at 9:35 AM, Chao YUE wrote: > >> Dear all, >> >> why I can only recieve the Matplotlib-users Digest, but not the ema

[Matplotlib-users] cannot directly reply to the mail?

2013-01-24 Thread Chao YUE
-- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.

[Matplotlib-users] ImportError: No module named _backend_gdk on fedora16 after upgrading to 1.2.0

2013-01-24 Thread Chao YUE
sing: backend : GTKAgg So what backend should I choose? thanks for any help, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712

[Matplotlib-users] rc parameters for colorbar?

2012-12-11 Thread Chao YUE
Dear all, I checked and it seems that we don't have rc Parameters for colorbar? could it be desirable? Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 157

Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-17 Thread Chao YUE
'90-100', ''] > > #Then to apply on the colorbar: > cbar.set_ticklabels(['']*len(cbarlevel)) > > ax = fig.axes[-1] > #ax.yaxis.set_tick_params(length=0) > > yloc = linspace(0,1,len(cbar_label)+1) > yloc = yloc[:-1] + yloc[1]/2. > for l,y in z

Re: [Matplotlib-users] how to reverse the colorbar and its label at the same time?

2012-11-10 Thread Chao YUE
Thanks, I think cbar.ax.invert_yaxis() is what I am looking for. Chao On Sat, Nov 10, 2012 at 4:51 PM, Damon McDougall wrote: > On Sat, Nov 10, 2012 at 9:41 AM, Paul Hobson wrote: > > On Sat, Nov 10, 2012 at 7:07 AM, Chao YUE wrote: > >> > >> Dear all, > >>

[Matplotlib-users] how to reverse the colorbar and its label at the same time?

2012-11-10 Thread Chao YUE
simple example above.) Does anyone have the same experience? Thanks et cheers, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - P

[Matplotlib-users] how to put colorbar label beside the handle?

2012-11-10 Thread Chao YUE
-- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.

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

2012-09-10 Thread Chao YUE
once fixed on master, the scatter legend > handler does not take notice of the "numpoints" kwarg. > > Hope that helps clarify the matter, > > Regards, > > Phil > > > On 10 September 2012 14:51, Benjamin Root wrote: > >> >> >> On Mon, Sep

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

2012-09-10 Thread Chao YUE
ed numpy version So it's the correct directory I am going. could you give some further instructions? Chao On Mon, Sep 10, 2012 at 3:05 PM, Benjamin Root wrote: > > > On Mon, Sep 10, 2012 at 2:56 AM, Chao YUE wrote: > >> Hi Ben, >> >> I tried the "numpo

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

2012-09-09 Thread Chao YUE
atter points. and the circles look >> much nicer than that produced by plt.scatter (thought I don't know why as >> they use the same symble) does anyone else have found the same ? thanks >> to all, Chao >> > > > This works for me with GTKAgg backend. If t

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

2012-09-09 Thread Chao YUE
but not scatter plot >> fig=plt.figure() >> ax=fig.add_subplot(111) >> ax.scatter(np.arange(10),np.arange(10),marker='o',label='tst') >> ax.legend(numpoints=1) >> plt.show() >> >> cheers, >> >> chao >> >> > Confirmed

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Chao YUE
o On Mon, Sep 3, 2012 at 8:13 PM, Damon McDougall wrote: > On Mon, Sep 3, 2012 at 6:08 PM, Chao YUE wrote: > > Yet if I don't want to change the rc file, I guess I must change in the > > modules where matplotlib has been imported for the first time? > > If

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Chao YUE
> On Monday, September 3, 2012, Chao YUE wrote: > >> Dear all, >> >> I have a module written by myself which use >> python-netcdf/matplotlib/numpy/basemap for treating and mapping of netcdf >> files. >> so in the module I have a line: >> >> import matplo

[Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Chao YUE
l use the module in a non-interactive mode? Thanks a lot for any information. Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batim

Re: [Matplotlib-users] clean way to build subplots with sharex only on same colomn and sharey only on same row?

2012-07-10 Thread Chao YUE
Hi Ben, I tried it. Installing the development version is much easier than I expect. and the subplots() function works very well as expect. it's too awesome. thanks a lot. cheers, Chao 2012/7/7 Benjamin Root > > > On Fri, Jul 6, 2012 at 5:39 PM, Chao YUE wrote: > >>

[Matplotlib-users] clean way to build subplots with sharex only on same colomn and sharey only on same row?

2012-07-06 Thread Chao YUE
cheers, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.

[Matplotlib-users] confusion with axes.set_ratio

2012-06-13 Thread Chao YUE
;) ax.text(0.35,0.4,'explicitly set aspect as equal',transform=ax.transAxes) axins=create_inset_axes(0.1, 0.55, 0.2, 0.2*ratio) #adjust the height by ax axes width/height ratio axins.plot(np.arange(10),'ro') ax.text(0.35,0.7,'adjust with hosting axes width/length r

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

2012-06-08 Thread Chao YUE
ints? thanks! Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08

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

2012-06-02 Thread Chao YUE
really used for plotting. Another question, where can I find the source code where mat.cm.jet is defined? thanks et cheers, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UM

[Matplotlib-users] how to set figure to appear on another monitor?

2012-05-23 Thread Chao YUE
Dear all, I have two different monitors. How can I use plot command within terminal in this monitor and set the figure to show defaultly in another one? thanks, Chao -- *** Chao YUE Laboratoire des Sciences du

[Matplotlib-users] Fwd: [ferret_users] PyFerret (beta) documentation and release available from Ferret website

2012-05-22 Thread Chao YUE
ation." -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax

[Matplotlib-users] how to remove colorbar?

2012-05-21 Thread Chao YUE
Dear all, Is there a way to remove colorbar? axes.cla() clears only the region for map but not the colorbar. Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 157

[Matplotlib-users] modify default figure dpi when saving figure interactivley

2012-05-21 Thread Chao YUE
dpi). the mat.rcParams['figure.figsize'] is still default [8,6]. The other option is that always use fig=gcf(); and fig.savefig('my_plot.jpg', dpi=300). I am suing 'Agg' backend on ubuntu system. thanks et cheers, Chao --

Re: [Matplotlib-users] customised linestyle?

2012-05-07 Thread Chao YUE
(): > > > http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.plot > > You may try different combinations of linestyle and marker to achieve your > desired style. > > ~Pengkui > > > On Fri, May 4, 2012 at 10:39 AM, Chao YUE wrote: > >> Dear all, >>

Re: [Matplotlib-users] control dash line spacing by rc parameters?

2012-05-07 Thread Chao YUE
cannot be accessed by mat.rcParams it's not in the rc.Params.keys() thanks for your answer! Chao 2012/5/7 Pengkui Luo > Hi Chao, > > Does this work for you? > > > http://old.nabble.com/Setting-dash-size-and-gap-of-dashed-line-in-matplotlib-td27386453.html > > ~Pengkui

[Matplotlib-users] control dash line spacing by rc parameters?

2012-05-07 Thread Chao YUE
Dear all, I guess Is it not possible to control dash line spacing by set rcParam? cheers, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Bat

Re: [Matplotlib-users] how to set set default figure format for interactive figures?

2012-05-04 Thread Chao YUE
Hi Ben, I search for keyword 'format' and don't find relevant issue. So I add one. cheers, Chao 2012/5/4 Benjamin Root > > > On Fri, May 4, 2012 at 9:11 AM, Chao YUE wrote: > >> Dear all, >> >> I use the default GTKAgg backend. When I explore the

[Matplotlib-users] customised linestyle?

2012-05-04 Thread Chao YUE
clear. Could anyone give a very small example? thanks et cheers, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF

[Matplotlib-users] how to set set default figure format for interactive figures?

2012-05-04 Thread Chao YUE
ers, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax

Re: [Matplotlib-users] how to create a collections.LineCollection instance?

2012-04-29 Thread Chao YUE
I should use mat.collections.LineCollection([line]) cheers, Chao 2012/4/29 Chao YUE > Dear all, > > I want to make an example of collections.LineCollection instance. So I have > > In [150]: line > Out[150]: [(0, 0), (0, 1), (1, 1), (1, 0)] > > but I use whatever the

[Matplotlib-users] how to create a collections.LineCollection instance?

2012-04-28 Thread Chao YUE
(line)) mat.collections.LineCollection(line) could anyone explain me a little bit? thanks et cheers, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS

[Matplotlib-users] how to set scatter plot point size after drawing the plot?

2012-04-18 Thread Chao YUE
matplotlib.collections.PathCollection object? thanks et cheers, Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69

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

2012-04-10 Thread Chao YUE
;ro',label='tst') ax.legend(numpoints=1) plt.show() #but not scatter plot fig=plt.figure() ax=fig.add_subplot(111) ax.scatter(np.arange(10),np.arange(10),marker='o',label='tst') ax.legend(numpoints=1) plt.show() cheers, chao -- **

Re: [Matplotlib-users] reverse colormap?

2012-03-30 Thread Chao YUE
Hi Tony, thanks! the first one works but not lambda x : 1-x. The function might be useful while it needs a little bit knowledge of colors. cheers, Chao 2012/3/29 Tony Yu > > > On Thu, Mar 29, 2012 at 1:31 PM, Chao YUE wrote: > >> Dear all, >> >> here in co

[Matplotlib-users] reverse colormap?

2012-03-29 Thread Chao YUE
as in the link to reverse, for example, the cm.jet colormap? thanks, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191

[Matplotlib-users] how to set contourf plot colorbar narrow?

2012-03-29 Thread Chao YUE
Dear all, I make a contourf plot but I think the colorbar is too wide. Can I make it narrower (slimmer)? plt.contourf(data) cbar=plt.colorbar() ?? thanks for any suggestions. cheers, Chao -- *** Chao YUE

[Matplotlib-users] draw contourf on top of continents with basemap?

2012-01-02 Thread Chao YUE
pletely invisible. Does anyone else have this and any suggestions? thanks, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91

Re: [Matplotlib-users] plt.hist() doesn't recognize the masked array?

2012-01-02 Thread Chao YUE
Thanks Ben. cheers, Chao 2012/1/2 Benjamin Root > On Mon, Jan 2, 2012 at 11:10 AM, Chao YUE wrote: > >> Dear all matplotlib users, >> >> Happy New Year. >> I try to check the distribution of a 2D array and I find that the >> histogram plot function do

[Matplotlib-users] plt.hist() doesn't recognize the masked array?

2012-01-02 Thread Chao YUE
0 it seems that all the elements (masked or not) are counted in the history plotting? and the original value is used but not the fill_value? I attach a figure below. In [194]: plt.show() -- *** Chao YUE Laboratoir

[Matplotlib-users] how to surpress figure pop out within interactive ipython shell?

2011-12-15 Thread Chao YUE
e them one by one, which can be really annoying any idea would be greatly appreciated! cheers, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UV

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

2011-11-24 Thread Chao YUE
plt.scatter (thought I don't know why as they use the same symble) does anyone else have found the same ? thanks to all, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (L

Re: [Matplotlib-users] cannot import animation module

2011-11-24 Thread Chao YUE
now I updated to 1.1.0, it works. thanks to all. chao 2011/11/23 Chao YUE > Dear all, > > I am using matplotlib 0.99.3 (I think it's the default version when I use > sudo apt-get install under ubuntu 11.04), but I don't have > matplotlib.animation module. I thi

[Matplotlib-users] cannot import animation module

2011-11-23 Thread Chao YUE
nks, chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax

Re: [Matplotlib-users] automatically adjust x, y axis equal limit on a 1:1 ratio plot?

2011-10-18 Thread Chao YUE
two lines: ax.set_xlim(min(ax.get_xlim()+ax.get_ylim()),max(ax.get_xlim()+ax.get_ylim())) ax.set_ylim(ax.get_xlim()) chao 2011/10/18 Chao YUE > Dear all, > > I am making a 1:1 ratio plot to compare data. > I can write a small part of code to detect which range of the x or y axis

[Matplotlib-users] automatically adjust x, y axis equal limit on a 1:1 ratio plot?

2011-10-18 Thread Chao YUE
nterval on both axises. but is there an automatic method to do this job? Thanks, Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 11

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(

[Matplotlib-users] scatter plot without edge color

2011-10-15 Thread Chao YUE
lp will be appreciated. Thanks. Chao -- ******* Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 6

[Matplotlib-users] how to make x and y axis equal distance in ticks

2011-10-14 Thread Chao YUE
-- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.