5 下图用tikz怎么绘制

发布于 2022-06-09 20:23:12
关注者
0
被浏览
1k
芒果不盲
芒果不盲 2022-06-11
学好TiKZ和tcolorbox!

好久没画图了,手生,将就一下吧

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{intersections,arrows.meta}
\begin{document}
\begin{tikzpicture}[>=Stealth]
  \draw[->] (-3,0) -- (3,0);
  \foreach \x in{20,30,40}
  \draw[->,name path=p\x] (0,0) -- (\x:3);
  \draw[name path=p50,domain=-2:2,smooth] plot (\x,0.5*\x*\x);
  \draw[name intersections={of=p20 and p50,name=i,total=\t},fill=white]
  {(i-2) circle (1pt)}; 
  \draw[name intersections={of=p30 and p50,name=i,total=\t},fill=white]
  {(i-2) circle (1pt)}; 
  \draw[name intersections={of=p40 and p50,name=i,total=\t},fill=white]
  {(i-2) circle (1pt)}; 
  \draw[name intersections={of=p20 and p50,name=i,total=\t},fill=white]
  {(i-1) circle (1pt)}; 
\end{tikzpicture}
\end{document}

QQ截图20220611112830.png

1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览