@@ -75,6 +75,7 @@ $_common_keyword_axis_label
7575"""
7676function plot_lagrangeradii! (scene, ax, layout, df:: DataFrame ;
7777 colors = ColorSchemes. tab10. colors,
78+ legend = true ,
7879 kw... )
7980 if isnothing (colors)
8081 colors = [RGB (rand (3 )... ) for i in 1 : 10 ]
@@ -97,14 +98,16 @@ function plot_lagrangeradii!(scene, ax, layout, df::DataFrame;
9798
9899 scenes = [p10, p9, p8, p7, p6, p5, p4, p3, p2, p1]
99100 columns = [" 100%" , " 90%" , " 80%" , " 70%" , " 60%" , " 50%" , " 40%" , " 30%" , " 20%" , " 10%" ]
100- leg = layout[1 ,1 ] = Legend (
101- scene, scenes, columns,
102- tellheight = false ,
103- tellwidth = false ,
104- halign = :right ,
105- valign = :top ,
106- margin = (10 , 10 , 10 , 10 ),
107- )
101+ if legend
102+ leg = layout[1 ,1 ] = Legend (
103+ scene, scenes, columns,
104+ tellheight = false ,
105+ tellwidth = false ,
106+ halign = :right ,
107+ valign = :top ,
108+ margin = (10 , 10 , 10 , 10 ),
109+ )
110+ end
108111
109112 return scenes, columns
110113end
@@ -150,6 +153,7 @@ $_common_keyword_axis_label
150153"""
151154function plot_lagrangeradii90! (scene, ax, layout, df:: DataFrame ;
152155 colors = ColorSchemes. tab10. colors,
156+ legend = true ,
153157 kw... )
154158 if isnothing (colors)
155159 colors = [RGB (rand (3 )... ) for i in 1 : 10 ]
@@ -171,14 +175,16 @@ function plot_lagrangeradii90!(scene, ax, layout, df::DataFrame;
171175
172176 scenes = [p9, p8, p7, p6, p5, p4, p3, p2, p1]
173177 columns = [" 90%" , " 80%" , " 70%" , " 60%" , " 50%" , " 40%" , " 30%" , " 20%" , " 10%" ]
174- leg = layout[1 ,1 ] = Legend (
175- scene, scenes, columns,
176- tellheight = false ,
177- tellwidth = false ,
178- halign = :right ,
179- valign = :top ,
180- margin = (10 , 10 , 10 , 10 ),
181- )
178+ if legend
179+ leg = layout[1 ,1 ] = Legend (
180+ scene, scenes, columns,
181+ tellheight = false ,
182+ tellwidth = false ,
183+ halign = :right ,
184+ valign = :top ,
185+ margin = (10 , 10 , 10 , 10 ),
186+ )
187+ end
182188
183189 return scenes, columns
184190end
0 commit comments