Tue 28 Sep 2010 08:54:45 PM UTC, original submission:
Hello,
consider the following example:
clf
x = 0:0.1:2*pi;
y1 = sin (x);
y2 = exp (x - 1);
ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy);
axes(ax(1)); text(2, .5, 'A');
axes(ax(2)); text(3, 20, 'B');
Expected output: two curves, two vertical axes, one combined horizontal axis, and two letters inside the graph.
Matlab output (7.8.0.347 (R2009a)): after axes(ax(1)), the second figure disappear. After axes(ax(2)), it gets back, but then the x axis is overwritten.
Octave 3.2.4 output: after the first 'text' command, the second drawing is compressed horizontally. The second text command has no visible effects.
Enclosed a patch I got from Liam Groener (liamg@mac.com), solving this problem
Regards
Pascal
|