Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.6K Views
|
5 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Set GridLines in Plot?

Hi,

I would like to see the GridLines behind the red region. How can I do that?

Thanks for your help.

col = {Darker[ColorData["Rainbow"][0.25], 0.2], 
  Darker[ColorData["Rainbow"][0.4], 0.2], 
  Lighter[ColorData["Rainbow"][0.8], 0.25], 
  Lighter[ColorData["Rainbow"][1], 0.2]}

list = { 8, 7, 6, 5, 4, 3, 2, 1}

{a, b} = {Min[list], Max[list]}

Plot[PDF[SmoothKernelDistribution@list, x], {x, a, b}, Frame -> True, 
 FrameTicksStyle -> Directive[Black, 14], ImageSize -> 500, 
 GridLines -> Automatic, Filling -> Bottom, FillingStyle -> col[[4]], 
 PlotRange -> All]

enter image description here

POSTED BY: M.A. Ghorbani
5 Replies

Add the option: Method -> {“GridLinesInFront“ -> True}

POSTED BY: Sander Huisman

Thank so much, Sander :)

POSTED BY: M.A. Ghorbani

Daer Sander,

I have a question about the Taylor diagram. How do I send you the question?.

POSTED BY: M.A. Ghorbani
Posted 6 years ago

Reduce opacity of the filling to make it transparent:

Plot[PDF[SmoothKernelDistribution@list, x], {x, a, b}, Frame -> True,
    FrameTicksStyle -> Directive[Black, 14], ImageSize -> 500, GridLines -> Automatic,
    Filling -> Bottom, FillingStyle -> Directive[Opacity@0.5, col[[4]]],PlotRange -> All]
POSTED BY: Hans Milton

Thank so much, Hans.

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