I'm drawing a 3D square for right angle following https://tex.stackexchange.com/a/163384/14423. That works fine, but I try filling that square and the results isn't the spected:
\documentclass{memoir}
\usepackage{tikz,pgfplots}
\usetikzlibrary{calc}
\pgfplotsset{ /pgfplots/area style/.style={%
area cycle list,
area legend,
axis on top,
}}
\newcommand{\RightAngle}[4][5pt]{%
\draw[fill] ($#3!#1!#2$)
--($ #3!2!($($#3!#1!#2$)!.5!($#3!#1!#4$)$) $)
--($#3!#1!#4$) ;
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[scale=0.65,view={130}{30},axis equal,axis on top,axis lines=center,xlabel=$x(t)$,ylabel=$y(t)$,zlabel=$z(t)$,xtick=\empty,ytick=\empty,ztick=\empty]
\addplot3[thick,->,black,samples y=0] coordinates {(0.261,1.047,1) (0.511,2.047,1)};
\addlegendentryexpanded{$T(t)$}
\addplot3[thick,->,color=green,samples y=0] coordinates {(0.261,1.047,1) (0.261,1.047,-0.5)};
\addlegendentryexpanded{$T'(t)$}
\addplot3[thick,->,color=red,samples y=0] coordinates {(0.261,1.047,1) (0.261,1.047,-0.125)};
\addlegendentryexpanded{$N(t)$}
\addplot3[blue,domain=0:pi,samples y=0] ({x/4},{x},{sin(deg(1.5*x))});
%\addlegendentryexpanded{$\Ce$}
\addplot3[mark=*,mark size=1.5pt] coordinates{(0.261,1.047,1)} node{};
\coordinate (P) at (0.261,1.047,1);
\coordinate (T) at (0.511,2.047,1);
\coordinate (N) at (0.261,1.047,-0.125);
\RightAngle{(T)}{(P)}{(N)};
\end{axis}
\end{tikzpicture}
\end{document}
As you can see there is a dotted node and the square for right angle is not filled completely. What am I doing wrong? and how get square filled with dashed lines?
z(t)
dotted
node. I was looking fordotted
somewhere. You need to specify a suitable compatibility option to get the output you posted. If you run the code you posted, you will probably not get the output you posted unless you've configured defaults somewhere where are not the standard ones.