How can I control the position of the $x$
label below? Created with draw("$x$",O--X,blue,Arrow3)
I know I can manually control label positions with label("$x$",<position>,blue)
, but is there a more automatic way---something analogous to the tikz
options node[near end]
or node[midway, above]
.
\documentclass{article}
\usepackage{asymptote}
\begin{document}
\begin{asy}[width=0.5\textwidth]
import graph3;
import grid3;
currentprojection=perspective(-0.51,3,1,up=Z);
draw("$x$",O--X,blue,Arrow3);
draw(O--Y,green,Arrow3);
draw(O--Z,red,Arrow3);
\end{asy}
\end{document}
point(path,p)
to make it slightly more automatic. eglabel("$x$",align=N,point(O--X,0.8));