On Mon, Jan 17, 2011 at 11:35 AM, Eric Firing <efir...@hawaii.edu> wrote:
> On 01/17/2011 05:42 AM, Bala subramanian wrote:
>> Friends,
>> I have created a figure (with two rows and two columns) and i drew four
>> contourf plots (A,B,C,D etc). All the four contourf has the same
>> coloring and bounds. I do not want to draw a colorbar() for each of the
>> plots separately but only one colorbar at the bottom of the four
>> plots.Something like the following scheme.
>>
>> plot1                            plot2
>> plot3                            plot4
>>            colorbar
>>
>> I tried using mpl.colorbar.ColorbarBase as given in
>> http://matplotlib.sourceforge.net/examples/api/colorbar_only.html
>> example to draw the colorbar. However i find the colorbar that is
>> created is overlapping over the plots. Kindly let me know what is the
>> correct way of adjuting its location and size or any other way to create
>> this colorbar.
>
> You should not ordinarily need to use ColorbarBase.  For something like
> what you are describing, see
>
> http://matplotlib.sourceforge.net/examples/pylab_examples/multi_image.html

Well, I learned something today. I had always been turning to
ColorbarBase for cases like this.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to