Code covered by the BSD License  

Highlights from
addaxes.m v1.1 (Sep 2009)

5.0 | 2 ratings Rate this file 19 Downloads (last 30 days) File Size: 7.1 KB File ID: #24875
image thumbnail

addaxes.m v1.1 (Sep 2009)



29 Jul 2009 (Updated )

Adds a new linked axis related by ANY monotonic function. Includes ZOOM/PAN and DATETICK utility!

| Watch this File

File Information

With PLOTYY you can add a new axis, which will be linearly related with the old one. With this function, the new axis may be related by ANY monotonic ascending or descending function with the old one (which should be specified), and works with the x-axis as well.

Besides, both axes will be linked to work with the ZOOM/PAN functionalities and even the DATETICK or TLABEL function for a time axis.

For example, to include a new x-axis with an exponential relationship with the old one just use:
>> addaxes('XFun','exp')

Enjoy it!
Any comments and bug reports will be very appreciated!


Addaxis, Plots.M, Plotses.M, Tlabel.M V2.6.1 (Sep 2009), and Linkzoom.M V1.3 (Aug 2009) inspired this file.

This file inspired Xunits, Yunits And Zunits.M (Jul 2014).

MATLAB release MATLAB 7.7 (R2008b)
Other requirements It is recommended to download the TLABEL function as well.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
15 Feb 2010 Allen

Allen (view profile)

Fantastic simple to use function which adds a second axis. Perfect for two different units plotted on two different x-axes. [Even handles the inversion.] Allows for zoom as well!

02 Oct 2009 jvc

jvc (view profile)

Simply terrific. I've wanted something like this for years. Thank you!

21 Sep 2009

v1.1 Fixed bug with function inversion, thanks to Allen Hall. Added 'Inverse' options and 'Position' link. Fixed small bug related with 'off' option.

Contact us