Hello, I have some stupid questions about how to use colorbar.
1) I would like to be able to put the colorbar where I went: top, bottom, left, right. For what I see I can do only a vertical left and horizontal bottom ones (with a simple use of the function). I know that it's possible to do a colorbar only but it's difficult to place them a little bit automatically and that bring my second question. 2) I would like that the colorbar with exactly the same size than the image I plot with pcolor. It's working when I'm not using the aspect='equal' in the subplot but not with this option. Naturally I want to not change the aspect of my image and so it's a big problem for me. The only solution I found is to manipulate the colorbar with the shrink valu but it's a little bit painfull especially the value change for each pcolor image (they doesn't have always the same size). 3) I would like to give a label to the colorbar (ie if the colorbar is at the bottom a label under the colorbar etc). To tell people what means the colors but I didn't find anyway to do it. xlabel work for the pcolor object (as expected) and there are no colorbar.xlabel function. Thank you for any help. N. ps: i join a simple script to show my problem #!/usr/bin/env python import pylab import numpy a = numpy.arange(100).reshape((10,10)) fig1 = pylab.figure() ax = fig1.add_subplot(141) im = ax.pcolor(a) fig1.colorbar(im,orientation='horizontal') pylab.xlabel('label') ax = fig1.add_subplot(142) im = ax.pcolor(a) fig1.colorbar(im,orientation='vertical') pylab.xlabel('label') ax = fig1.add_subplot(143,aspect='equal') im = ax.pcolor(a) fig1.colorbar(im,orientation='vertical') pylab.xlabel('label') ax = fig1.add_subplot(144,aspect='equal') im = ax.pcolor(a) fig1.colorbar(im,orientation='horizontal') pylab.xlabel('label') pylab.show() ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users