![Как изменить размер шрифта на метках xy?](https://rvso.com/image/330714/%D0%9A%D0%B0%D0%BA%20%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B8%D1%82%D1%8C%20%D1%80%D0%B0%D0%B7%D0%BC%D0%B5%D1%80%20%D1%88%D1%80%D0%B8%D1%84%D1%82%D0%B0%20%D0%BD%D0%B0%20%D0%BC%D0%B5%D1%82%D0%BA%D0%B0%D1%85%20xy%3F.png)
У меня есть следующий код, который я скопировал отсюдаКак нарисовать единичную гиперболу в 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}