I have the following image in my file. How can I add units next to the numbers? I'd like the units to be in volts. I just added a part of the tikz code bellow.
\definecolor{mycolor1}{rgb}{0.00000,0.44700,0.74100}%
\begin{tikzpicture}
\begin{axis}[%
width=0.951\figurewidth,
height=\figureheight,
at={(0\figurewidth,0\figureheight)},
scale only axis,
xmin=1,
xmax=1250,
xtick={\empty},
ymin=4,
ymax=6,
axis background/.style={fill=white},
xmajorgrids,
ymajorgrids,
y unit = \volt
]
\addplot [color=mycolor1, forget plot]
table[row sep=crcr]{%
1 5\\
2 4.90000000000009\\
3 5\\
5 5\\
};
\end{axis}
\end{tikzpicture}%
\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Moriambar May 15 '17 at 16:23