Yannick Copin wrote:
> Hi,
> 
> in a case similar to matplotlib-0.87.7/examples/contour_demo.py (figure 
> 4), would it be possible to merge to two colorbars (a continuous one 
> from imshow, a discrete one from contour) into a single colorbar? 
> Indeed, in that case, the two colorbars are mostly redundant.
> 
> Cheers.

Yes, lines can be superimposed on a continuous colorbar.  The demo is 
not ideal; I was mainly showing that one could use two colorbars for two 
different things.  I have changed the contourf_demo.py in svn to include 
an example of a merged colorbar.  Maybe I will change contour_demo.py 
later to make it an illustration of having colorbars for completely 
different fields, so it won't look so pointless as it does now.

Eric

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to