Rank: 4221 based on 28 downloads (last 30 days) and 1 file submitted
photo

Tim Richards

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Tim
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Sep 2006 Screenshot LinkTopAxisData Adds a linked second x axis to a plot Author: Tim Richards annotation, customization, plotxx, xaxis, double, scale 28 6
  • 4.2
4.2 | 5 ratings
Comments and Ratings on Tim's Files View all
Updated File Comment by Comments Rating
28 Apr 2012 LinkTopAxisData Adds a linked second x axis to a plot Author: Tim Richards Vincent, Aaron

21 Jul 2010 LinkTopAxisData Adds a linked second x axis to a plot Author: Tim Richards Saragiotis, Christos

Good job. Two comments

Comment 1: I think it is a good idea to change lines 46 and 49 as follows:
(46) temp=[TopTickPositions(:), TopTickLabels(:)];
(49) temp = sortrows(temp);
This will allow users to enter either row or column vectors (or both) for the ticks and labels.

Comment 2 (regarding the bug that Thierry reported):
It can be fixed if line 50 is replaced by
temp(diff(temp(:,1))==0,:) = [];

14 Aug 2009 LinkTopAxisData Adds a linked second x axis to a plot Author: Tim Richards R, K

Thank you so much for this submission! It took me 15 minutes of playing around with it to figure it out (it wasn't immediately clear to me that TopTickPositions were the positions on the original axis and that TopTickLabels were the associated values on the new axis). But it works great! I really appreciate it - thanks!!

09 Nov 2007 LinkTopAxisData Adds a linked second x axis to a plot Author: Tim Richards Dalon, Thierry

small bug:
line temp=temp(diff(temp(:,1))>0,:);
will always remove on tick label.

30 Nov 2006 LinkTopAxisData Adds a linked second x axis to a plot Author: Tim Richards Moisy, Frederic

Works well, very useful for me. Thanks!

Contact us