://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,
>
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
s.org/
***
Chao YUE
postdoc at LSCE
CEA-Ormes des Merisiers, F-91191 GIF-SUR-YVETTE CEDEX
Tel: 33 1 69 08
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
; 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
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
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>
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
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.
>
>
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
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
#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'
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.
>>
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
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
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
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
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
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
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
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
--
*********
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
--
***
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.
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
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
'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
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,
> >>
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
--
***
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.
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
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
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
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
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
> 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
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
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:
>
>>
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.
;)
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
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
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
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
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
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
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
--
():
>
>
> 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,
>>
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
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
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
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
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
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
(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.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
;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
--
**
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
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
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
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
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
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
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
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
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
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
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
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
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(
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
--
***
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.
70 matches
Mail list logo