Skip to content

Commit dba973e

Browse files
committed
Added cmap specification.
1 parent 45af39b commit dba973e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pylab_examples/image_origin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
lim = -2, 11, -2, 6
1616
plt.subplot(211, axisbg='g')
1717
plt.title('blue should be up')
18-
plt.imshow(x, origin='upper', interpolation=interp)
18+
plt.imshow(x, origin='upper', interpolation=interp, cmap='jet')
1919
# plt.axis(lim)
2020

2121
plt.subplot(212, axisbg='y')
2222
plt.title('blue should be down')
23-
plt.imshow(x, origin='lower', interpolation=interp)
23+
plt.imshow(x, origin='lower', interpolation=interp, cmap='jet')
2424
# plt.axis(lim)
2525
plt.show()

0 commit comments

Comments
 (0)