You are reading an old version of the documentation (v1.2.1). For the latest version see https://matplotlib.org/stable/
matplotlib

This Page

pylab_examples example code: pcolor_small.pyΒΆ

(Source code, png, hires.png, pdf)

../../_images/pcolor_small.png
#!/usr/bin/env python

from pylab import *

Z = rand(6,10)

subplot(2,1,1)
c = pcolor(Z)
title('default: no edges')

subplot(2,1,2)
c = pcolor(Z, edgecolors='k', linewidths=4)
title('thick edges')

show()

Keywords: python, matplotlib, pylab, example, codex (see Search examples)