Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Filling leaves a gap between the function curve and the axis

Show[Plot[PDF[NormalDistribution[0, 1], z], {z, -3, 6}], 
Plot[PDF[NormalDistribution[0, 1], z], {z, c=1.4, 6}, Filling -> Axis]
]

enter image description here

But for other values (e.g., c=0.5 instead of c=1.4 in the above code), the Filling is correct. Is this a bug or am I making some subtle error?

share|improve this question
2  
Add PlotRange -> All to the second plot. –  Alexey Popkov Apr 6 at 16:42
    
PlotRange->All works. thanks! –  user13484 Apr 6 at 16:52
2  
Effectively duplicate of mathematica.stackexchange.com/q/45424/12 –  Szabolcs Apr 6 at 20:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.