Found this coordinate plane in the forum, I really like it. I would like 4 arrows, 2 on each axis, pointing in all 4 directions instead of 2. Not sure why arrows only point right and up. I have seen this in MANY Cartesian planes.
TIA
Here is the code
\documentclass[tikz]{standalone}
\usepackage{tkz-euclide}
\begin{document}
\begin{figure}[h]
\begin{tikzpicture}
\tkzInit[xmax=6,ymax=6,xmin=-6,ymin=-6]
\tkzGrid
\tkzAxeXY
\draw[ thick,latex-latex] (-1,4) -- (4,-6) node[anchor=south west] {$a$}; % two points for drawing 2x+y=2
\tkzTextabove{Desired Output}
\end{tikzpicture}
\end{figure}
\end{document}
Code for pgfplots coordinate plane
\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
axis line style={Stealth-Stealth, very thick},
xmin=-10,xmax=10,ymin=-10,ymax=10,
xtick distance=1,
ytick distance=1,
xlabel=$x$,
ylabel=$y$,
title={},
grid=major,
grid style={thick,black!50}]
\addplot [Latex-Latex,domain=-5:3,samples=2] {x*2/3} node[right]{$a$};
\end{axis}
\end{tikzpicture}
\end{document}




tikzfor graphing and instead usepgfplots(which is built on top oftikz. – Peter Grill Feb 04 '22 at 07:56pgfplotsis the tool for graphing.tkz-euclideis for euclidean geometry. – Alain Matthes Feb 04 '22 at 10:36