标签: matlab plot matlab-figure loglog
我有这个loglog的情节,我想在y轴上清理,你会看到,这有点乱。
loglog
我希望情节看起来像这样:
更具体地说,我想删除值之间可见的标记(0,10e-2,10e-4,10e-6,10e-8,{{ 1}})。怎么做到这一点?
0
10e-2
10e-4
10e-6
10e-8
答案 0 :(得分:1)
您可以关闭次要标记:
y = logspace(1,-8,5); x = logspace(0.5,2,5); loglog(x,y) grid on ax = gca; ax.YAxis.MinorTick = 'off'; % and the same for the X-axis ax.FontSize = 16;