The following is a rather simple question, yet somehow I failed to find a solution online.
Let's say for example we want to draw a three-dimensional coordinate system:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath,amssymb}
\usepackage{blindtext}
\begin{document}
\fbox{
\begin{tikzpicture}
\coordinate (O) at (0,0);
\draw[->] (O) -- (90:1);
\draw[->] (O) -- ++(0:1);
\pgfmathparse{sqrt(0.5)}
\draw[->] (O) -- ++(45:\pgfmathresult);
\node[shape=circle, draw=red, scale=.5, very thin] (mark) at (O) {};
\end{tikzpicture}
}
\end{document}
The red circle marks the problem. If you compile the document yourself and zoom far in, you'll see that the axes are not connected---a little notch is missing!
Is there a way to connect these three paths so that we get a "full corner"?


line cap=rectfor all three\drawcommands. – Torbjørn T. Jul 26 '19 at 18:54(0.5:{sqrt(0.5)})– Torbjørn T. Jul 26 '19 at 18:59