Hi,
I am trying to put 1 colorbar on 2 subplots, but failing miserably.

I have tried multiple approaches, involving subplot2grid, add_axes,
AxesGrid etc.

If anyone has a "canned" routine or knows what to do, your help is greatly
appreciated.

Here is my code block:

  fig = pyplot.figure()

    ax1 = pyplot.subplot2grid((2,2),(0,0))
    cx1  = pyplot.contourf(x,y,var1,var_cint,origin='lower',extend='both')

    ax2 = pyplot.subplot2grid((2,2),(0,1))
    cx2  = pyplot.contourf(x,y,var2,var_cint,origin='lower',extend='both')

Now I want to put 1 colorbar to these subplots.

Thanks!
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to