|
Found a nice way to do it.
I read in what the "tight" values would be and then play with them to make them 1eXX. See below. One hitch, in a loglog plot, ylim seems to read the min as zero (when it's obviously not).
axis tight
xlim_tight = xlim;
xlim_log(1) = 10^(floor(log10(xlim_tight(1)))); % min x-axis
xlim_log(2) = 10^( ceil(log10(xlim_tight(2)))); % max x-axis
Daphne
"Daphne" <daphnew_too_nospam@yahoo.com> wrote in message <h8g9sb$2il$1@fred.mathworks.com>...
>
> I am trying to get a nice tight plot in loglog scale and axis tight doesn't work well.
> Axis auto, gives maybe 2-3 log decades more than needed, while axis tight cuts into the middle of a decade.
> Is there any way to define an axis tight for full log decades? (going from 1-->100 and not from 4-->100 for example).
>
> Thanks!
> Daphne
|