You can do that by supplying the tick positions you want with plt.xticks
and plt.yticks
.
For example, for a spacing of 0.05 in x, use
step = 0.05
plt.xticks(np.arange(40.65, 40.85 + step, step))
Same for the y axis. Here, np
is numpy
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.