3D 플롯에서
선이 아닌 표시만 표시하도록 세 번째 범례 항목을 수정하고 싶습니다. 에서
https://tex.stackexchange.com/a/113765/28093
\addlegendimage{only marks}
나는 세 번째 항목과 같은 것을 사용해야한다는 것을 이해했습니다 . 그러나 는 \addlegendimage{...}
플롯 순서대로 있어야 하기 때문에( 없이 ) 두 표면에 forget plot
무엇을 사용할지 알아야 합니다 . \addlegendimage{...}
멋진 3D 메시 범례 항목을 얻으려면 어떤 인수를 사용해야 하는지 모르겠습니다. pgfplots
명령 설명서의 설명서 에서 찾을 수 없습니다 \addlegendimage{...}
.
only marks
또한 범례 항목의 색상이나 유형을 변경하지 않고 변경하려는 경우 어떤 명령을 사용하여 \addplot
명령에 사용된 색상과 유형을 검색합니까?
최소 작업 예:
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
[
xmin=0,xmax=1,xtick={0,1},xlabel=$x$,ymin=0,ymax=1,ytick={0,1},ylabel=$y$,zmin=0,zmax=1,ztick={0,1},legend style={at={(1,1)},anchor=north west,draw=none,fill=none},legend cell align=left,view={45}{10}
]
% What should I put here?
%\addlegendimage{???};
%\addlegendimage{???};
%\addlegendimage{???};
% phi
\addplot3[mesh,blue,domain=0:1,domain y=1/2:1,samples=5] {0};\addlegendentry{plot 1};
\addplot3[mesh,blue,domain=0:1/2,domain y=0:1/2,samples=5,forget plot] {(x-0)*(y-1/2)/((1/2-0)*(0-1/2))};
\addplot3[mesh,blue,domain=1/2:1,domain y=0:1/2,samples=5,forget plot] {(x-1)*(y-1/2)/((1/2-1)*(0-1/2))};
% phi*2*sin(2*pi*x)
\addplot3[mesh,red,domain=0:1,domain y=1/2:1,samples=5] {0};\addlegendentry{plot 2};
\addplot3[mesh,red,domain=0:1/2,domain y=0:1/2,samples=5,forget plot] {(x-0)*(y-1/2)/((1/2-0)*(0-1/2))*0.6*(sin(deg(2*pi*x))+1)};
\addplot3[mesh,red,domain=1/2:1,domain y=0:1/2,samples=5,forget plot] {(x-1)*(y-1/2)/((1/2-1)*(0-1/2))*0.6*(sin(deg(2*pi*x))+1)};
\addplot3[draw=none,black,mark=o] coordinates { (0,0,0)
(1/2,0,0)
(1,0,0)
(1,1/2,0)
(1,1,0)
(1/2,1,0)
(0,1,0)
(0,1/2,0)};\addlegendentry{plot 3};
\end{axis}
\end{tikzpicture}
\end{document}