.. _pylab_examples-subplots_adjust:

pylab_examples example code: subplots_adjust.py
===============================================



.. plot:: /media/TOSHI/temp/numpy_scipy_matplotlib/matplotlib/matplotlib-1.1.1~rc2/doc/mpl_examples/pylab_examples/subplots_adjust.py

::

    from pylab import *
    
    
    subplot(211)
    imshow(rand(100,100))
    subplot(212)
    imshow(rand(100,100))
    
    subplots_adjust(bottom=0.1, right=0.8, top=0.9)
    cax = axes([0.85, 0.1, 0.075, 0.8])
    colorbar(cax=cax)
    show()
    

Keywords: python, matplotlib, pylab, example, codex (see :ref:`how-to-search-examples`)