[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has n
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect |
Date: |
Tue, 05 Feb 2013 15:29:37 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17 |
Follow-up Comment #2, bug #38265 (project octave):
I took a quick look at legend.m and found that the fix is easy. We had
neglected to add a listener for the legend's fontsize property.
$ hg diff
diff --git a/scripts/plot/legend.m b/scripts/plot/legend.m
--- a/scripts/plot/legend.m
+++ b/scripts/plot/legend.m
@@ -874,6 +874,7 @@
if (addprops)
addlistener (hlegend, "edgecolor", @updatelegendtext);
addlistener (hlegend, "textcolor", @updatelegendtext);
+ addlistener (hlegend, "fontsize", @updatelegendtext);
addlistener (hlegend, "interpreter", @updatelegendtext);
addlistener (hlegend, "location", @updatelegend);
addlistener (hlegend, "orientation", @updatelegend);
@@ -915,7 +916,10 @@
text_kids = findobj (kids, "-property", "interpreter", "type", "text");
interpreter = get (h, "interpreter");
textcolor = get (h, "textcolor");
- set (text_kids, "interpreter", interpreter, "color", textcolor);
+ fontsize = get (h, "fontsize");
+ set (text_kids, "interpreter", interpreter,
+ "fontsize", fontsize,
+ "color", textcolor);
endfunction
function hideshowlegend (h, d, ca, pos1, pos2)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38265>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect, Ben Abbott, 2013/02/05
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect, Julien Bect, 2013/02/05
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect,
Ben Abbott <=
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect, Ben Abbott, 2013/02/05
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect, Ben Abbott, 2013/02/05
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect, Ben Abbott, 2013/02/06
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect, Rik, 2013/02/06
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect, Ben Abbott, 2013/02/06
- [Octave-bug-tracker] [bug #38265] OpenGL: changing legend fontsize has no effect, Ben Abbott, 2013/02/06