Advertisement
cd62131

q12280694337 y = x^2 in Tikz

Jun 1st, 2023
2,452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.52 KB | None | 0 0
  1. \documentclass[dvipdfmx,uplatex]{jsarticle}
  2. \usepackage{tikz}
  3. \usetikzlibrary{patterns,patterns.meta}
  4. \begin{document}
  5. \begin{tikzpicture}
  6.  \fill[pattern={Lines[angle=45, distance=10pt]}, domain=0:2.2, variable=\x]
  7.    (0,-1) -- node[left] {$0$} (0,0) -- plot (\x, {\x*\x}) -- (3,2.2*2.2) -- (3,-1) -- cycle;
  8.  \draw[thick, smooth, domain=-2.2:2.2] plot (\x, {\x*\x}) node[left] {$y = x^2$};
  9.  \draw[->] (-3,0) -- (3,0) node[right] {$x$};
  10.  \draw[->] (0,-1) -- (0,5) node[right] {$y$};
  11. \end{tikzpicture}
  12. \end{document}
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement