xy 라벨의 글꼴 크기를 어떻게 변경합니까?

xy 라벨의 글꼴 크기를 어떻게 변경합니까?

여기에서 복사한 다음 코드가 있습니다.LaTex에서 단위 쌍곡선을 그리는 방법은 무엇입니까?, 회전시켰습니다. 축 레이블 글꼴이 너무 큽니다. 매뉴얼과 다양한 게시물을 살펴봐도 내 문제를 해결할 수 없습니다. 다양한 위치에 {font size=tiny(글꼴 크기=최소)를 넣으려고 했지만 아무 변화가 없습니다. 도움을 주시면 감사하겠습니다

\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=5cm,compat=1.12}
% axis style, ticks, etc
\pgfplotsset{every axis/.append style={font=\tiny}{
axis x line=middle,    % put the x axis in the middle
axis y line=middle,    % put the y axis in the middle
axis line style={->}, % arrows on the axis
`xlabel={\footnotesize$x^{'}$},          % default put x `on x-axis
                ylabel={\footnotesize$y^{'}$},{font=\tiny}          % 
default put y on y-axis
                rotate=40.0}}
% arrows as stealth fighters
\tikzset{>=stealth}
\begin{document}
\begin{tikzpicture}
    \begin{axis}[
            xmin=-5,xmax=5,
        ymin=-5,ymax=5]
        \addplot [red,domain=-2:2] ({cosh(x)}, {sinh(x)});
    \addplot [red,domain=-2:2] ({-cosh(x)}, {sinh(x)});
    \addplot[red,dashed] expression {x};
    \addplot[red,dashed] expression {-x};
\end{axis}
\end{tikzpicture}

\end{document}

답변1

labels및를 tick labels사용하여 글꼴 크기를 수정할 수 있습니다 label style={font=\tiny}.tick label style={font=\tiny}

\documentclass[tikz]{standalone}
\usepackage{pgfplots}

% axis style, ticks, etc
\pgfplotsset{every axis/.append style={
                    axis x line=middle,    % put the x axis in the middle
                    axis y line=middle,    % put the y axis in the middle
                    axis line style={<->}, % arrows on the axis
                    xlabel={$x$},          % default put x on x-axis
                    ylabel={$y$},          % default put y on y-axis
                    label style={font=\tiny},
                    tick label style={font=\tiny}  
                    }}

% arrows as stealth fighters
\tikzset{>=stealth}

\begin{document}

\begin{tikzpicture}
    \begin{axis}[
            xmin=-5,xmax=5,
        ymin=-5,ymax=5]
        \addplot [red,thick,domain=-2:2] ({cosh(x)}, {sinh(x)});
        \addplot [red,thick,domain=-2:2] ({-cosh(x)}, {sinh(x)});
        \addplot[red,dashed] expression {x};
        \addplot[red,dashed] expression {-x};
    \end{axis}
\end{tikzpicture}

\end{document}

관련 정보