Add a plot of one filled curve to another, whose color is set to white.

On Mon, Oct 10, 2011 at 4:32 PM, Dan Aldrich <daldr...@earthlink.net> wrote:
> Been trying to set up my graphs so I can select fill areas of a distribution
> curve. So far all I've been able to do is fill the entire curve.  Any
> suggestions?
>
> Thanks,
> -d
>
> # distribution function
> f(x) = 1/sqrt(2*pi)*e^(.5*(-x^2))
> # plus/minus 1 sigma
> s = 1
> p = plot(f,(-pi,pi),ymax = .4, ticks=[1,[]], fill = 'axis')
> ps = line([(s,0),(s,f(s))],linestyle = 'dashed')
> ns = line([(-s,0),(-s,f(-s))],linestyle = 'dashed')
> p += text("$\\mu$ = 0",(0.4,0.05))
> show (p+ps+ns)
>
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to