Try cb.orientation = "horizontal" cb.update_bruteforce(cb.mappable)
it seems to work okay. However, note that "update_bruteforce" clears the axes then redraws. So, if you added some artists in the colorbar axes by yourself (although this is not likely), they will be lost. Regards, -JJ On Thu, Mar 4, 2010 at 8:48 PM, Thomas Robitaille <thomas.robitai...@gmail.com> wrote: > Hi, > > I would like to change the orientation of a colorbar once it has already been > drawn. So for example if I create the colorbar with: > > cb = fig.colorbar(mappable=image, cax=cax, orientation='vertical') > > I would like to be able to do > > cb.set_orientation('horizontal') > > Is there a way to do this, since set_orientation does not exist? > > Thanks for any help, > > Thomas > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users