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

Skip to content

Commit 68230b2

Browse files
committed
DOC: tweak example + add some extra prose
1 parent 82c4aab commit 68230b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/users/whats_new/imshow_logscales.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Example
2222

2323
fig, (ax1, ax2) = plt.subplots(ncols=2, figsize=(8, 4))
2424

25-
ax1.imshow(data, aspect="auto", extent=(0, 5, 1e0, 1e5), interpolation='nearest')
25+
ax1.imshow(data, aspect="auto", extent=(0, 6, 1e0, 1e5), interpolation='nearest')
2626
ax1.set_yscale('log')
2727
ax1.set_title('Using ax.imshow')
2828

@@ -33,3 +33,7 @@ Example
3333

3434
plt.show()
3535

36+
37+
This can be understood by analogy to plotting a histogram with linearly spaced bins
38+
with a logarithmic x-axis. Equal sized bins at will be displayed as wider for small
39+
*x* and narrower for large *x*.

0 commit comments

Comments
 (0)