Is it possible to change the arrowhead in a label?
In combination with the draw command it is easy to modify arrowheads:
\documentclass[a4paper, 12pt]{book}
\usepackage{fontspec}
\setmainfont{Cambria}
\setsansfont{Calibri}
\newfontfamily\Headerfamily{Calibri}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usetikzlibrary{calc,fadings,decorations.pathreplacing,arrows.meta}
\usepackage{mathtools}
\tikzset{>=latex, % option for nice arrows
inner sep=0pt,%
outer sep=2pt,%
mark coordinate/.style={inner sep=0pt,outer sep=0pt,minimum size=3pt,
fill=black,circle}%
}
\begin{document}
\begin{tikzpicture}
\draw[->] (0,0) -- (1,0);
\end{tikzpicture}
\end{document}
I would prefer an arrow head at the xlabel and ylabel like in the example above instead of \rightarrow like in the example below:
\documentclass[a4paper, 12pt]{book}
\usepackage{fontspec}
\setmainfont{Cambria}
\setsansfont{Calibri}
\newfontfamily\Headerfamily{Calibri}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usetikzlibrary{calc,fadings,decorations.pathreplacing,arrows.meta}
\usepackage{mathtools}
\begin{document}
\begin{tikzpicture}
\begin{axis}[domain=0:45,
/pgf/number format/1000 sep={},
samples=180,
grid=major,smooth,
xmin=0,
xmax=45,
ymin=-0.5,
ymax=0.5,
xlabel=$ ^{\circ} C \rightarrow$,
ylabel=$ m s^{\, -2} \rightarrow$,
legend pos=north west],
\legend{$Temperature drift$}
\addplot [color=black,thick]
{(-0.000003643682714*x^3+
(0.000234812441401*x^2+
(0.004932909568573*x};
\end{axis}
\end{tikzpicture}
\end{document}
Is there any way to modify the head of \rightarrow that it looks like the arrowhead in the first example?
\documentclass
command, have a minimal preamble and then\begin{document}...\end{document}
. The code should compile and be as small as possible to demonstrate your problem.