diff --git a/src/backends/inspectdr.jl b/src/backends/inspectdr.jl index 748710e5..a3064855 100644 --- a/src/backends/inspectdr.jl +++ b/src/backends/inspectdr.jl @@ -408,13 +408,13 @@ function _inspectdr_setupsubplot(sp::Subplot{InspectDRBackend}) _inspectdr_mapptsize(xaxis[:tickfontsize]), color = _inspectdr_mapcolor(xaxis[:tickfontcolor]) ) - l[:enable_legend] = (sp[:legend_position] != :none) - #l[:halloc_legend] = 150 #TODO: compute??? - l[:font_legend] = InspectDR.Font(sp[:legend_font_family], + l.enable_legend = (sp[:legend_position] != :none) + #l.halloc_legend = 150 #TODO: compute??? + l.font_legend = InspectDR.Font(sp[:legend_font_family], _inspectdr_mapptsize(sp[:legend_font_pointsize]), color = _inspectdr_mapcolor(sp[:legend_font_color]) ) - l[:frame_legend].fillcolor = _inspectdr_mapcolor(sp[:legend_background_color]) + l.frame_legend.fillcolor = _inspectdr_mapcolor(sp[:legend_background_color]) #_round!() ensures values use integer spacings (looks better on screen): InspectDR._round!(InspectDR.autofit2font!(l, legend_width=10.0)) #10 "em"s wide return