Rank: 365725 based on 0 downloads (last 30 days) and 0 file submitted
photo

Ben

E-mail
Company/University
Carleton Univeristy, Ottawa

Personal Profile:
Professional Interests:
Wireless Sensor Network - Localization

 

Watch this Author's files

 

Comments and Ratings by Ben
Updated File Comments Rating
22 Nov 2009 addaxis Add multiple y-axes to plots. zoomable with zoom modification. Author: Harry Lee

Great tool! I'm surprised matlab doesn't handle this better natively (the way gnuplot does).

If you need to change linestyles, ytics, etc, just change the declaration of addaxis to:

function [hplts,h_ax] = addaxis(varargin)

This give you back the handle to the plot (as if you called h=plot(...)) and the axes (h=axes(...)) yourself.

The only outstanding issue I have is positioning a legend outside the plot...one solution might be to put all the new y-axes on the right (instead of alternating left/right), and then legend Location NorthEast, but I haven't tried that yet.

Contact us