LaTeX - 星形线(内摆线的一种)

原创
2018/10/26 14:22
阅读数 573
\documentclass[border=0,tikz]{standalone}
%\usetikzlibrary{quotes,angles}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{datavisualization.formats.functions}% hanshu
%\usetikzlibrary{calc}% 
\usetikzlibrary{decorations.pathreplacing}
\usepackage{scalerel} %\scaleobj{1.5}{} 缩放公式大小
\begin{document}
\begin{tikzpicture}
\draw[arrows={-Stealth[length=5pt, inset=4.5pt]}] (-1.75,0) -- (1.75,0)node (xaxis) [below=-0.5mm] {$\scaleobj{0.5}{x}$};
\draw[arrows={-Stealth[length=5pt, inset=4.5pt]}] (0,-1.75) -- (0,1.75)node (yaxis) [left=-0.75mm] {$\scaleobj{0.5}{y}$};
\draw  (-0.12,-0.12) node {$\scaleobj{0.5}{o}$};
\draw[color=red,scale=0.75, domain=-3.142:3.142, smooth, variable=\t ]
plot ( {2*cos(\t r)^3}, {2*sin(\t r)^3} );
\end{tikzpicture}
\end{document}

参考Easiest way to plot a function with PGF/TikZ

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部