Skip to content

Commit 5adee64

Browse files
committed
use sequential YlOrRd colormap for unipolar data, discourage using jet for everything
1 parent a638c9c commit 5adee64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pylab_examples/hexbin_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020

2121
plt.subplots_adjust(hspace=0.5)
2222
plt.subplot(121)
23-
plt.hexbin(x,y, cmap=cm.jet)
23+
plt.hexbin(x,y, cmap=cm.YlOrRd_r)
2424
plt.axis([xmin, xmax, ymin, ymax])
2525
plt.title("Hexagon binning")
2626
cb = plt.colorbar()
2727
cb.set_label('counts')
2828

2929
plt.subplot(122)
30-
plt.hexbin(x,y,bins='log', cmap=cm.jet)
30+
plt.hexbin(x,y,bins='log', cmap=cm.YlOrRd_r)
3131
plt.axis([xmin, xmax, ymin, ymax])
3232
plt.title("With a log color scale")
3333
cb = plt.colorbar()

0 commit comments

Comments
 (0)