清洁对数刻度(loglog)图

时间:2016-12-26 12:44:56

标签: matlab plot matlab-figure loglog

我有这个loglog的情节,我想在y轴上清理,你会看到,这有点乱。

my plot

我希望情节看起来像这样:

expected results

更具体地说,我想删除值之间可见的标记(010e-210e-410e-610e-8,{{ 1}})。怎么做到这一点?

1 个答案:

答案 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;

minorTick