有没有办法阻止XTickLabels与Matlab中的数字中的YTickLabels重叠?
好:
不好(-2和-5重叠):
代码(我更喜欢不针对此特定代码定制的解决方案):
好:
wavelet_name = 'coif1';
[~,psi,xval] = wavefun(wavelet_name,10);
scale = 1;
shift = 1;
x_min = -1;
x_max = 8;
plot([x_min, shift+xval.*scale, x_max],[0, psi, 0]);
axis([x_min x_max -2 3]);
set(gca,'FontSize',50)
save_figure( [wavelet_name '_scale' num2str(scale) '_shift' num2str(shift)] )
不好:(我只将x_min = -1;
更改为x_min = -5;
)
wavelet_name = 'coif1';
[~,psi,xval] = wavefun(wavelet_name,10);
scale = 1;
shift = 1;
x_min = -5;
x_max = 8;
plot([x_min, shift+xval.*scale, x_max],[0, psi, 0]);
axis([x_min x_max -2 2]);
%title('Sym2 Wavelet');
set(gca,'FontSize',50)
save_figure( [wavelet_name '_scale' num2str(scale) '_shift' num2str(shift)] )
我使用Matlab R2014a和Windows 7 SP1 x64 Ultimate。
答案 0 :(得分:1)
似乎这个问题已在Matlab R2014b中得到修复。您的代码的执行提供了下图。