--
***
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.77.16
overlap,
this does not work anymore.
Any help 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
cool. it's done!! Thanks!!!
Chao
2011/10/15 Tony Yu tsy...@gmail.com
On Sat, Oct 15, 2011 at 8:55 AM, Chao YUE chaoyue...@gmail.com 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
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 119
91191 GIF Sur
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 chaoyue...@gmail.com
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
--
***
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.77.16
now I updated to 1.1.0, it works. thanks to all.
chao
2011/11/23 Chao YUE chaoyue...@gmail.com
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 think I need
)
does anyone else have found the same ?
thanks to all,
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
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-UVSQ
Batiment 712
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
Laboratoire des
Thanks Ben.
cheers,
Chao
2012/1/2 Benjamin Root ben.r...@ou.edu
On Mon, Jan 2, 2012 at 11:10 AM, Chao YUE chaoyue...@gmail.com 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 doesn't respect
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
91191 GIF Sur YVETTE Cedex
Tel: (33
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
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 GIF Sur YVETTE Cedex
Tel
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 tsy...@gmail.com
On Thu, Mar 29, 2012 at 1:31 PM, Chao YUE chaoyue...@gmail.com wrote:
Dear all,
here in cookbook
')
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
--
***
Chao
for 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 08 29
(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-UVSQ
I should use mat.collections.LineCollection([line])
cheers,
Chao
2012/4/29 Chao YUE chaoyue...@gmail.com
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 following I
--
***
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.77.16
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 Sur YVETTE Cedex
Tel: (33
Hi Ben,
I search for keyword 'format' and don't find relevant issue. So I add one.
cheers,
Chao
2012/5/4 Benjamin Root ben.r...@ou.edu
On Fri, May 4, 2012 at 9:11 AM, Chao YUE chaoyue...@gmail.com wrote:
Dear all,
I use the default GTKAgg backend. When I explore the figure
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
Batiment
be accessed by
mat.rcParams
it's not in the rc.Params.keys()
thanks for your answer!
Chao
2012/5/7 Pengkui Luo pengkui@gmail.com
Hi Chao,
Does this work for you?
http://old.nabble.com/Setting-dash-size-and-gap-of-dashed-line-in-matplotlib-td27386453.html
~Pengkui
2012/5/7 Chao YUE
://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 chaoyue...@gmail.com wrote:
Dear all,
Is it possible to have a customized linestyle
).
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
--
***
Chao
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 1572 CEA
Administration.
--
***
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.77.16
--
***
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.77.16
, 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
ratio',transform=ax.transAxes)
cheers,
Chao
--
***
Chao YUE
Laboratoire
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.77.16
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 ben.r...@ou.edu
On Fri, Jul 6, 2012 at 5:39 PM, Chao YUE chaoyue...@gmail.com
--
***
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.77.16
:
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 matplotlib.pyplot as plt
But now I am using some function of this module
:13 PM, Damon McDougall
damon.mcdoug...@gmail.comwrote:
On Mon, Sep 3, 2012 at 6:08 PM, Chao YUE chaoyue...@gmail.com 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 you're changing the rc file
... this is still broken.
Ben Root
--
***
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
symble) does anyone else have found the same ? thanks
to all, Chao
This works for me with GTKAgg backend. If this is still a problem for
you, which backend are you using?
Ben Root
--
***
Chao YUE
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 ben.r...@ou.edu wrote:
On Mon, Sep 10, 2012 at 2:56 AM, Chao YUE chaoyue...@gmail.com wrote:
Hi Ben,
I tried the numpoints in legend function for scatter
, that even 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 ben.r...@ou.edu wrote:
On Mon, Sep 10, 2012 at 9:33 AM, Chao YUE chaoyue...@gmail.com wrote:
Hi
--
***
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.77.16
attachment
in the
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 - Pe 119
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
damon.mcdoug...@gmail.comwrote:
On Sat, Nov 10, 2012 at 9:41 AM, Paul Hobson pmhob...@gmail.com wrote:
On Sat, Nov 10, 2012 at 7:07 AM, Chao YUE chaoyue...@gmail.com wrote
= 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 zip(cbar_label,yloc):
ax.text(1,y,l,transform=ax.transAxes,ha='left')
draw()
-Sterling
On Nov 16, 2012, at 12:58PM, Chao YUE wrote:
Thanks Sterling
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 1572 CEA-CNRS
:
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 - Pe 119
91191 GIF
--
***
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.77.16
thanks Paul. You're right, I changed the setting, should work now.
Chao
On Thu, Jan 24, 2013 at 7:36 PM, Paul Hobson pmhob...@gmail.com wrote:
On Thu, Jan 24, 2013 at 9:35 AM, Chao YUE chaoyue...@gmail.com wrote:
Dear all,
why I can only recieve the Matplotlib-users Digest
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
--
***
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR
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 goyod...@gmail.com wrote:
2013/3/11 Chao YUE chaoyue...@gmail.com:
Dear all,
I searched the internet but still
--
***
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.77.16
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
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 chaoyue...@gmail.com wrote:
Dear all,
Does anyone have
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 712 - Pe 119
',\
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 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01
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 YVETTE
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.
Feel free to let me know that I'm barking up the wrong tree.
-Sterling
On Dec 30, 2013, at 3:46PM, Chao YUE wrote:
Dear all,
Happy new year!
I
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'Environnement (LSCE
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 chaoyue...@gmail.com 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
Clima
Instituto de Oceanografia - FURG
2014-03-10 14:39 GMT-03:00 Chao YUE chaoyue...@gmail.com:
Dear all,
I am using the matplotlib 1.2.0 version, is there some way to put the
label above the horizontal colorbar? like in the attached example, I would
like the labels to be shown above
, self.urcrnry, ny)
To avoid the multiplicative floating point drift that is currently being
seen.
HTH,
Phil
--
please visit:
http://www.globalcarbonatlas.org/
***
Chao YUE
Laboratoire des Sciences du Climat et
-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
--
please visit:
http://www.globalcarbonatlas.org/
***
Chao YUE
Laboratoire des
On Mon, Apr 21, 2014 at 11:03 PM, Chao YUE chaoyue...@gmail.com 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
figure.savefig
On Mon, Apr 21, 2014 at 5:03 PM, Chao YUE chaoyue...@gmail.com 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
figure.savefig('xx.png
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-YVETTE
://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 <chaoyue...@gmail.com> wrote:
>
/
***
Chao YUE
postdoc at LSCE
CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX
Tel: 33 1 69 08 41 87
66 matches
Mail list logo