I have the following defined in my latex file:
\begin{tikzpicture}[background rectangle/.style={fill=black}, show background rectangle]
\draw[step=1, transparent] (-1, -1) grid (3, 3);
\draw[ultra thick, ->] (-1, 0) -- (3, 0);
\draw[ultra thick, ->] (0, -1) -- (0, 3);
\draw[] (2.8, -0.2) node[below] {\textbf{$x$}};
\draw[] (-0.2, 2.8) node[left] {\textbf{$y$}};
\draw[scale=1, domain=-1:sqrt(3), smooth, variable=\x, thick] plot ({\x}, {\x*\x});
\fill[white] (1, 1) circle (2pt);
\end{tikzpicture}
I want to know how I can create a node on (3, sqrt(3)).
I have tried the following:
\node[] at (3, sqrt(3)) {A};
However, it does not seem to be working when compiling my code.
\node at (3, {sqrt(3)}) {A};
should work. – Jasper Habicht Mar 2 at 17:49\node at ({sqrt(3)},3) {A}
– koleygr Mar 2 at 17:51{sqrt(3)}
. My only concern is about why it works ondomain=-1:sqrt(3)
now. – Octonions Mar 2 at 18:12