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

Eric

>
> My code is attached with this mail.
>
> Thanks,
> Bala
>
>
>
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
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