First page Back Continue Last page Overview Graphics

Individual Colors

contour = plt.contourf(X, Y, Z)

plt.clabel(contour, colors = 'k', fmt = '%2.1f', fontsize=12)

c = ('#ff0000', '#ffff00', '#0000FF', '0.6', 'c', 'm')

contour_filled = pl.contourf(X, Y, Z, colors=c)

Colors:

b: blue g: green r: red c: cyan m: magenta y: yellow k: black w: white

Gray shades are numbers

between 0 and1:

color = '0.75'