xxxxxxxxxx
var('x'); t=15
f=cos(x); g=sqrt(x)*sin(x); h=cos(sqrt(x)*sin(x))
fun=[f,f.diff(),g,g.diff(),h,h.diff()]
c=[colormaps.hsv(35*i)[:3] for i in [0..5]]
l=[r'$f$',r'$f \prime$',r'$g$',
r'$g \prime$',r'$h$',r'$h \prime$']
p=plot(fun,(0,t),color=c,thickness=2,fill='axis',
fillcolor=c,fillalpha=0.1,legend_label=l)
p.show(figsize=(6,5),legend_fancybox=True,
legend_loc=3,legend_font_size=16,gridlines=True)
No comments:
Post a Comment