|
From: marcusantonius <mar...@st...> - 2009-05-25 21:27:45
|
Thank you very much for your email. Your example >imshow(rand(10,10)*8, vmin=0, vmax=8) >colorbar(ticks=[0,2,4,6,8]) works fine. >Note also that to get the sequence [0,2,4,6,8] you need arange(0,9,2), >not arange(0,8,2). Or you can use linspace(0,8,5) if you prefer. Thank you for making me aware of that (You see that I don't have a lot of experience in python and matplotlib). I now specified the color range via vmin and vmax, and this solved my problem. Thanks for the fast help -- View this message in context: http://www.nabble.com/Colorbar-Ticks-tp23712716p23713404.html Sent from the matplotlib - users mailing list archive at Nabble.com. |