我可视化的数据只有在整数时才有意义.
即在我正在分析的信息的上下文中,0.2的记录没有意义.
如何强制matplotlib仅使用Y轴上的整数.即1,100,5等?不是0.1,0.2等
for a in account_list:
f = plt.figure()
f.set_figheight(20)
f.set_figwidth(20)
f.sharex = True
f.sharey=True
left = 0.125 # the left side of the subplots of the figure
right = 0.9 # the right side of the subplots of the figure
bottom = 0.1 # the bottom of the subplots of the figure
top = 0.9 # the top of the subplots of the figure
wspace = 0.2 # the amount of width reserved for blank space between subplots
hspace = .8 # the amount of height reserved for white space between subplots
subplots_adjust(left=left, right=right, bottom=bottom, top=top, wspace=wspace, hspace=hspace)
count = 1
for h in headings:
sorted_data[sorted_data.accoun
Original: https://blog.csdn.net/weixin_33215370/article/details/112965481
Author: Fay li
Title: python画图不显示y轴_python – 如何强制matplotlib只显示Y轴上的整数
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/768810/
转载文章受原作者版权保护。转载请注明原作者出处!