
범례 글꼴 크기를 조정하는 방법을 묻고 답변하는 게시물이 몇 개 있습니다. 예를 들어,
그러나 이는 다음 명령 사용에 의존합니다.
legend style={font=\tiny}
scale = 0.5
노드 크기를 조정하는 방법과 유사하게 명령(또는 이와 유사한)을 사용하여 범례 글꼴(또는 전체 범례)의 크기를 다시 조정하고 싶습니다 . 축 레이블의 글꼴 크기를 다시 조정하는 것에 대해 here과 비슷한 질문을 했지만 범례에 대해 동일한 솔루션을 얻을 수 없었습니다. 즉, 단순히 변경하면 font=
작동 style=
하지 않는 것 같습니다.
아래에 최소한의 예를 첨부합니다.
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[legend image post style={mark=*}]
\addplot+[mark=*, color=blue, very thin, only marks, mark size=0.8pt]{-x*(x-2)};
\addlegendentry{Measurement}
\end{axis}
\end{tikzpicture}
\end{document}
생산하는
답변1
다음과 같은 것 :
[...]
\begin{axis}[legend style={nodes={scale=0.5, transform shape}},
legend image post style={mark=*}]
[...]
nodes
범례의 "스타일"은 범례 상자를 생성하기 위해 생성된 모든 노드에 적용됩니다.
(그런데 \pgfplotsset{compat=1.9}
나중에 진드기 레이블 문제를 방지하려면 코드에 a 또는 최소한 이와 유사한 것을 추가해야 합니다.)
전체 코드(참조용):
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}\pgfplotsset{compat=1.9}
\begin{document}
\begin{tikzpicture}
\begin{axis}[legend style={nodes={scale=0.5, transform shape}},
legend image post style={mark=*}]
\addplot+[mark=*, color=blue, very thin, only marks, mark size=0.8pt]{-x*(x-2)};
\addlegendentry{Measurement}
\end{axis}
\end{tikzpicture}
\end{document}