Message Boards Message Boards

0
|
3484 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Get background with Legend[Framed[Background]] in ContourPlot?

Posted 6 years ago

Ok. Why doesn't the background of the framed legend hide the gridlines? I'm running version 11.1.1.0. Thanks.

ContourPlot[{y^2 == 2 x, 
  x == Sqrt[\[Pi]] y/2 Exp[y^2/4] Erf[y/2]}, {x, 0, 20}, {y, 0, 3}, 
 GridLines -> All, 
 PlotLegends -> 
  Placed[LineLegend[{"Approximate", "Exact"}, LabelStyle -> 16, 
    LegendFunction -> (Framed[#, 
        FrameStyle -> Directive[Thickness[0]], 
        Background -> White] &)], {.7, .25}]]
POSTED BY: Glenn Carlson
Posted 6 years ago

Solved!

Replace "Background->White" with "Background->GrayLevel[1,0.6]".

POSTED BY: Glenn Carlson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract