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

Skip to content

Commit 9ed73a6

Browse files
committed
force even integer ticks for y-axis.
1 parent e480851 commit 9ed73a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/color/color_cycle_default.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
axs[0, icol].set_title('line widths (pts): %.1f, %.1f' % (lwx, lwy),
2929
fontsize='medium')
3030

31+
for irow in range(2):
32+
axs[irow, 0].yaxis.set_ticks(np.arange(0, 10, 2))
33+
3134
fig.suptitle('Colors in the default prop_cycle', fontsize='large')
3235

3336
plt.show()

0 commit comments

Comments
 (0)