heart love with latex tikzpicture
📅 March 21, 2024 | 👁️ Views: 29

\documentclass{standalone}
\usepackage{amsmath,amssymb,mathrsfs}
\standaloneconfig{border=2mm 2mm 2mm 2mm}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\definecolor{left}{HTML}{f00000}
\begin{document}
\begin{tikzpicture}
\node[] at (2,6.5) {$16\sin^3(t)$};
\node[] at (3,6) {$13\cos(t)-5\cos(2t)-2\cos(3t)-\cos(4t)$};
\begin{axis}[axis lines=none]
\addplot[
shading=axis,rectangle,
left color=left,
right color=left!30!white,
shading angle=135,
very thick,
variable=t,
domain=0:360,samples=150] (
{16*sin(t)*sin(t)*sin(t)},
{13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t)});
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{amsmath,amssymb,mathrsfs}
\standaloneconfig{border=2mm 2mm 2mm 2mm}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\definecolor{left}{HTML}{f00000}
\begin{document}
\begin{tikzpicture}
\node[] at (2,6.5) {$16\sin^3(t)$};
\node[] at (3,6) {$13\cos(t)-5\cos(2t)-2\cos(3t)-\cos(4t)$};
\begin{axis}[axis lines=none]
\addplot[
shading=axis,rectangle,
left color=left,
right color=left!30!white,
shading angle=135,
very thick,
variable=t,
domain=0:360,samples=150] (
{16*sin(t)*sin(t)*sin(t)},
{13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t)});
\end{axis}
\end{tikzpicture}
\end{document}