You are reading an old version of the documentation (v1.3.0). 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
import matplotlib.pyplot as plt
from numpy.random import rand

Z = rand(6,10)

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

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

plt.show()

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