Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14dc7a8

Browse files
committed
DOC: Fix colorbar label for log-scaled hexbin
Fixes matplotlib#27383
1 parent 7b8814b commit 14dc7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

galleries/examples/statistics/hexbin_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
hb = ax1.hexbin(x, y, gridsize=50, bins='log', cmap='inferno')
3030
ax1.set(xlim=xlim, ylim=ylim)
3131
ax1.set_title("With a log color scale")
32-
cb = fig.colorbar(hb, ax=ax1, label='log10(N)')
32+
cb = fig.colorbar(hb, ax=ax1, label='counts')
3333

3434
plt.show()
3535

0 commit comments

Comments
 (0)