Thanks Ben. extendrect keyword is in mat 1.3, I didn't try this but I tried
set_under and extend='min'
with mat 1.2 and it works very nice.
cheers,
Chao
On Tue, Jul 2, 2013 at 4:14 PM, Benjamin Root-2 [via matplotlib]
ml-node+s1069221n41364...@n5.nabble.com wrote:
There is the set_over and set_under members of a colormap, and the
plt.colorbar() function takes an extend='min' argument to add an extra
color at the beginning of the colorbar. Setting extendrect=True, the
added color will be rectangular instead of triangular.
Hopefully that helps.
Cheers,
Ben Root
On Tue, Jul 2, 2013 at 6:14 AM, Chao YUE [hidden
email]http://user/SendEmail.jtp?type=nodenode=41364i=0
wrote:
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 [hidden
email]http://user/SendEmail.jtp?type=nodenode=41364i=1
wrote:
Dear all,
Does anyone have similar experience that to make a colorbar
starting from a different color in the colormap? for example, to
denote the region with invalid data. I attahced a figure to show
what I would like to have, the withe region in the colorbar in the
attahced figure shows no data.
thanks a lot for any help,
best,
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
--
***
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
--
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
___
Matplotlib-users mailing list
[hidden email] http://user/SendEmail.jtp?type=nodenode=41364i=2
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
___
Matplotlib-users mailing list
[hidden email] http://user/SendEmail.jtp?type=nodenode=41364i=3
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
If you reply to this email, your message will be added to the discussion
below:
http://matplotlib.1069221.n5.nabble.com/how-to-make-a-colorbar-starting-with-a-different-color-tp41362p41364.html
To start a new topic under matplotlib - users, email
ml-node+s1069221n...@n5.nabble.com
To unsubscribe from matplotlib, click
herehttp://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=2code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx
.
NAMLhttp://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
--
***
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
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/how-to-make-a-colorbar-starting-with-a-different-color-tp41362p41383.html
Sent from the matplotlib - users mailing list archive at Nabble.com.--
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users