Much better than Matlab's plotyy function by far. The only thing that I cannot figure out yet, is for some reason my y label for the label on the right side of the plot always intersects with the axis. I can move the label so it's not a big deal, but it would be nice if it didn't intersect with the axis to begin with.
Hi Joel, thanks for the comments.
In answer, I don't generally use panel like that (rather, I mod the script and run it from scratch again), but it can be done if you prefer messing around at the command line. As I say, this is relatively untested because I don't use it, so ymmv.
I think if you delete a child panel, everything behaves, and you can call delete on an array of panels. So, in your example, try:
delete(p(1).children); % p(1).reset()
05 Dec 2013
Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export.