Skip to content

Commit f16b15f

Browse files
committed
rainbow instead of jet for diverging data, summer for sequential data
1 parent fb4a980 commit f16b15f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/pylab_examples/tripcolor_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
# pcolor plot.
3636
plt.figure()
3737
plt.gca().set_aspect('equal')
38-
plt.tripcolor(triang, z, shading='flat')
38+
plt.tripcolor(triang, z, shading='flat', cmap = cm.rainbow)
3939
plt.colorbar()
4040
plt.title('tripcolor of Delaunay triangulation: flat')
4141

4242
# Illustrate Gouraud shading.
4343
plt.figure()
4444
plt.gca().set_aspect('equal')
45-
plt.tripcolor(triang, z, shading='gouraud')
45+
plt.tripcolor(triang, z, shading='gouraud', cmap = cm.rainbow)
4646
plt.colorbar()
4747
plt.title('tripcolor with Gouraud shading')
4848

@@ -96,7 +96,7 @@
9696
# calculations.
9797
plt.figure()
9898
plt.gca().set_aspect('equal')
99-
plt.tripcolor(x, y, triangles, z, shading='flat', edgecolors='k')
99+
plt.tripcolor(x, y, triangles, z, shading='flat', edgecolors='k', cmap = cm.summer)
100100
plt.colorbar()
101101
plt.title('tripcolor of user-specified triangulation')
102102
plt.xlabel('Longitude (degrees)')

0 commit comments

Comments
 (0)