summaryrefslogtreecommitdiffstats
path: root/scilab/modules/graphics
diff options
context:
space:
mode:
authorSerge Steer <serge.steer@scilab.org>2010-03-03 15:57:34 +0100
committerSerge Steer <serge.steer@scilab.org>2010-03-03 15:57:34 +0100
commitac6867a888f6e8566f92b1a16d3c9facb3a565a3 (patch)
treef78ac58f59266d09dc953a789bc07575f507f89a /scilab/modules/graphics
parent7e4b061f4b5d567d584629678a4a4daaf34028e0 (diff)
downloadscilab-ac6867a888f6e8566f92b1a16d3c9facb3a565a3.zip
scilab-ac6867a888f6e8566f92b1a16d3c9facb3a565a3.tar.gz
to adapt the legend background to the underlying entity (Axes or Figure)
Diffstat (limited to 'scilab/modules/graphics')
-rw-r--r--scilab/modules/graphics/macros/legend.sci5
1 files changed, 5 insertions, 0 deletions
diff --git a/scilab/modules/graphics/macros/legend.sci b/scilab/modules/graphics/macros/legend.sci
index 5a99cf3..17a9433 100644
--- a/scilab/modules/graphics/macros/legend.sci
+++ b/scilab/modules/graphics/macros/legend.sci
@@ -86,6 +86,11 @@ options_codes=[1;2;3;
86 86
87 drawlater() 87 drawlater()
88 c=captions(H,leg) 88 c=captions(H,leg)
89 if options_codes(kopt)<0 then
90 c.background=f.background
91 else
92 c.background=Acur.background
93 end
89 if with_box then c.line_mode='on',else c.line_mode='off',end 94 if with_box then c.line_mode='on',else c.line_mode='off',end
90 c.legend_location=options_names(kopt) 95 c.legend_location=options_names(kopt)
91 if opt==5 then 96 if opt==5 then