|
"Daniel Armyr" <firstname@lastname.se> wrote in message <ghitlp$b4h$1@fred.mathworks.com>...
> Hi.
> I am writing a custom plotting function, and one of the most difficult things to implement is the function that takes the range of the input data and sugests the axis limits and the tick spacing. Does anyone know if it is possible in some way to access matlabs such built-in function?
>
> Sincerely
> Daniel Armhyr
Something like this?
x = 100*rand(3,1) ;
y = 100*rand(3,1) ;
tempaxes = axes('position',[0 0 1 1],'visible','off') ;
plot(x,y) ;
suggestedXlimits = get(tempaxes,'xlim')
% and other properties
delete(tempaxes)
hth, Jos
|