You are reading an old version of the documentation (v1.4.2). For the latest version see

Previous topic

pylab_examples example code:

Next topic

pylab_examples example code:

This Page

pylab_examples example code: pcolor_small.pyΒΆ

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

import matplotlib.pyplot as plt
from numpy.random import rand

Z = rand(6,10)

c = plt.pcolor(Z)
plt.title('default: no edges')

c = plt.pcolor(Z, edgecolors='k', linewidths=4)
plt.title('thick edges')

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