poster
2019-12-10, 20:48
我想绘制的数据x和y与errorbars, ebar ,其配合, yfitted ,在半对数图。这似乎不起作用:
figure; hold on; errorbar(x,y,ebar); semilogy(x,yfitted); 代替半对数图,我得到了线性图。我应该怎么做?
回答:
尝试
h = errorbar(x,y,ebar); set(get(h,'Parent'), 'YScale', 'log') 要么
ax = axes(); errorbar(ax, x,y,ebar); set(ax, 'YScale', 'log');
更多&回答... (https://stackoverflow.com/questions/3550241)
figure; hold on; errorbar(x,y,ebar); semilogy(x,yfitted); 代替半对数图,我得到了线性图。我应该怎么做?
回答:
尝试
h = errorbar(x,y,ebar); set(get(h,'Parent'), 'YScale', 'log') 要么
ax = axes(); errorbar(ax, x,y,ebar); set(ax, 'YScale', 'log');
更多&回答... (https://stackoverflow.com/questions/3550241)