[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34148] Subplots with gnuplot overlap with plo
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #34148] Subplots with gnuplot overlap with plotyy |
Date: |
Thu, 01 Sep 2011 15:01:18 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1 |
Update of bug #34148 (project octave):
Status: Works For Me => In Progress
Assigned to: None => bpabbott
_______________________________________________________
Follow-up Comment #16:
I found the problem. Consider a simpler case.
y = 1:10;
x = y;
figure (1)
clf
subplot (1, 1, 1);
axis ([0, 10, 0, 10])
ca1 = gca ();
ax1 = plotyy (x, y, x, y);
title ('title')
ylabel ('ylabel')
xlabel ('xlabel')
subplot (1, 1, 1)
axis ([0, 10, 0, 10])
ca2 = gca ();
ax2 = plotyy (x, y, x, y);
title ('title')
ylabel ('ylabel')
xlabel ('xlabel')
In each case, the current axes after calling subplot should be the same as it
was prior to subplot. Octave gets this wrong on the first call. On the other
hand, Matlab produces the same result each time. With Matlab the ylabel is
blue and on the left side since it is applied to pre-exiting axis in each
case.
If the "axis" command is not used, then the ylabel shows up on the right side
in each case.
This looks like a minor bug in plotyy.m. I'll prepare a changeset.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34148>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/