function test()
y = [i for i in 1:10]
x = 1:length(y)
plot(x,y)
xticks = [2,4,6,8] #指定多少,显示多少
xticks_label = ["zhang3","lee4","wang5","aQ"]
xticks!(xticks,xticks_label)
end
test()
原始的图
image.pngx的刻度标签修改【指定几个标签就显示几个标签】
xticks = [2,4,6,8] #指定多少,显示多少
image.png
网友评论