Rank: 6672 based on 9 downloads (last 30 days) and 2 files submitted
photo

Bart van Oort

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Bart van Oort View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Mar 2013 set1limtight set ylim tight for the current xlim range of a plot (xlim stays unchanged); incl. option for xlim Author: Bart van Oort xlim, ylim, tight, axis tight, setytight 4 3
19 Feb 2013 setytight set ylim tight for the current values of xlim of a plot (xlim remains unchanged) Author: Bart van Oort xlim, ylim, axis, tight, axis tight, setxtight 5 0
Comments and Ratings by Bart van Oort View all
Updated File Comments Rating
04 Mar 2013 set1limtight set ylim tight for the current xlim range of a plot (xlim stays unchanged); incl. option for xlim Author: Bart van Oort

Updated according to suggestions by Jos.
Renamed function to set1limtight, replacing setxtight and setytight.

25 Feb 2013 set1limtight set ylim tight for the current xlim range of a plot (xlim stays unchanged); incl. option for xlim Author: Bart van Oort

Thanks for the suggestions, I will have a look at it later this week.

Bart

Comments and Ratings on Bart van Oort's Files View all
Updated File Comment by Comments Rating
04 Mar 2013 set1limtight set ylim tight for the current xlim range of a plot (xlim stays unchanged); incl. option for xlim Author: Bart van Oort Bart van Oort

Updated according to suggestions by Jos.
Renamed function to set1limtight, replacing setxtight and setytight.

25 Feb 2013 set1limtight set ylim tight for the current xlim range of a plot (xlim stays unchanged); incl. option for xlim Author: Bart van Oort Bart van Oort

Thanks for the suggestions, I will have a look at it later this week.

Bart

19 Feb 2013 set1limtight set ylim tight for the current xlim range of a plot (xlim stays unchanged); incl. option for xlim Author: Bart van Oort Jos (10584)

Nice idea! However, ...
(1) It would be nice to be able to pass axes handles to the function

(2) a more robust approach would be:
function setxtight(ah)
% ... argument/error checks etc. go here ...
L = get(ah,{'ylim','zlim'}) ;
axis(ah,'tight') ;
set(ah,'ylim',L{1},'zlim',L{2}) ;

(3) The help section is broken (did you check what the user sees after typing "help setxtight"

(4) I suggest to combine both set##tight functions in a single submission.

Contact us