我打算用tikz画这样的图
! [ ] (3359 wenda.latex studio.net/data/attach/191031/mwklzxcg.png ) )。
图中` a `和` b `的区域打算用不同的. 来表示一切
我打算用tikz画这样的图
! [ ] (3359 wenda.latex studio.net/data/attach/191031/mwklzxcg.png ) )。
图中的` a `和` b `区域打算用不同的颜色来区别,该如何用`fill ` (或者其他命令)命令来实现呢?
现在可以进行的代码如下
` ` tex
document class [ utf8 ] { standalone }
(USEpackage(AMSmath,fourier,ctex,tikz} ) )。
begin{document}
begin { tikzpicture } [ domain=-0.33:3 ]
(draw(-latex )-0.3,0 ) node ) left=-3pt,below=-2pt ) {$o$}-- ) 2,0 ) node ) below ) $x$};
(draw[-latex](0,-0.3 )-- ) 0,2 ) node[left] {$y$};
(draw[domain=0:1.2]plot ) x,{0.5* ) x^2} ) node[right]($y=x^{2}$} );
(draw[domain=0:0.9]plot ) x,{2*x^2} ) node[right] {$y=2x^{2}$};
(draw ) domain=0:0.62 ) plot ) x,{3.5*(x^2}) ) node[above] {$L$};
(draw[Dashed] ) 0.8,2 * 0.8 ^2)-(0,2 * 0.8 ^2);
(draw [ dashed ] (0.8,2 * 0.8 ^2)-(0.8,0 );
(fill(domain=0:0.8,fill=gray ) ) 0,0 ) plot ) x,{0.5*x^2} ) 0.8,2 * 0.8 ^2) plot ) () )
end{tikzpicture}
end{document}
``````
我不知道如何将` y=2x^{2} `设定为阴影边界