thanx
Marco
Marco,
you can edit ERRORBAR.M and modify lines 91-92 as follows:
xl = x - tee*x; %modif for semilogx or loglog plot
xr = x + tee*x; %modif for semilogx or loglog plot
and save the file under a new name (e.g. errorbar_log.m)
HTH, Denis.
Thank you for your hint, but I'm afraid it doesn't work. I'm just
trying to modify errorbar.m properly...
Marco, the fix I proposed solves a commonly encountered problem with
error bars in loglog and semilogx plots, namely that ERRORBAR then
produces error bars with progressively narrower TEES from left to
right. With the fix I suggested, you obtain TEES of uniform width
over the entire abscissa with XScale = 'log'.
Perhaps you should describe the nature of your problem in more
details, and I or someone else could take another stab at it.
Denis.
Sorry, Denis, it did not work because I did not put 'loglog' in the
place of 'plot' in the same program (lines 129-130)! The fix you
suggested is the good one, but I think it works better also by
setting tee equal to 0.1 or similar (line 90) so that it will not
depend on the range of x.
Marco