Error bars on log scale using errorbarxy in matlab -
in matlab using errorbarxy plot x , y error bars. however, log scale on both x , y axes, error bars not right - i.e. error bar 'heads' different sizes. how can fix this?
x = 10 * rand(7,1); y = 10 * rand(7,1); ux = rand(7,1); uy = rand(7,1); lx = rand(7,1); ly = rand(7,1); errorbarxy(x,y,ux,uy,lx,ly,'color','k','linestyle','none','marker','o','markerfacecolor','w','markersize',11); set(gca,'yscale','log'); set(gca,'xscale','log'); print -r600 -dtiff myplot.tif
i suppose can use ploterr instead.
from documentation: following features supported:
- linear/logarithmic scaling
- x and/or y error bars
- relative/absolute errors
- width of bar handles adjustable
Comments
Post a Comment