[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46835] Error on modifying properties of a leg
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #46835] Error on modifying properties of a legend in plotyy |
Date: |
Tue, 26 Dec 2017 12:52:55 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #10, bug #46835 (project octave):
@Kai: This is a very complicated script, and I wouldn't call plotyy twice on
the same figure. Instead, use the axes returned from the first call and
continue plotting into each of those axes as necessary.
x = 1:3;
[hax,h1,h2]=plotyy(x,2:4,x,6:-1:4);
hold on
#[~,h3,h4]=plotyy(x,3:5,x,5:-1:3); # not recommended
h3 = plot (hax(1), x, 3:5);
h4 = plot (hax(2), x, 5:-1:3);
h5=plot(hax(2),x,5:7);
But yes, it does reveal a known problem with the fact that the legend is
re-created when the fontsize changes. I checked in a change that appears to
work here (http://hg.savannah.gnu.org/hgweb/octave/rev/359596cc55dd).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46835>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/