From: Eric F. <ef...@ha...> - 2009-04-06 19:44:20
|
P.Romero wrote: > Is it possible to create a colorbar with different scales on each side? > > > > Example: > > a temperature colorbar with celcius values on the left side and > farenheit values on the right side. > > > > If so, how could this be done? A colorbar is just an axes object with some customization of the ticks and labels, and with a pcolor plot inside. You could get your second scale using a technique similar to the twinx and twiny Axes methods; you can then use set_xlim or set_ylim so that the Fahrenheit range on the new axes matches the Celcius range on the old one. To get started, look at the source for the twinx/twiny methods. Eric > > > > Please help, > > Thanks, > > P.Romero > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |