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.