Merge pull request #1271 from daschw/gr-legend

allow to change the foreground_color_legend in gr
This commit is contained in:
Daniel Schwabeneder 2017-11-30 16:50:18 +01:00 committed by GitHub
commit 4c9f4a55d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1222,8 +1222,7 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
GR.setfillintstyle(GR.INTSTYLE_SOLID)
gr_set_fillcolor(sp[:background_color_legend])
GR.fillrect(xpos - 0.08, xpos + w + 0.02, ypos + dy, ypos - dy * n)
GR.setlinetype(1)
GR.setlinewidth(1)
gr_set_line(1, :solid, sp[:foreground_color_legend])
GR.drawrect(xpos - 0.08, xpos + w + 0.02, ypos + dy, ypos - dy * n)
i = 0
if sp[:legendtitle] != nothing