I am attempting to use the axis
environment to build a simple plot line. Is it possible for tick labels to be renamed as text?
Instead of numbers I would like the month on the x-axis, and in addition, include a dollar sign on the y-axis tick label.
MWE:
\documentclass{article}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
small,
xlabel=Month,
ylabel=Dollars,
axis y line=left,
axis x line=bottom,
xmin=0,
xmax=5,
ymin=0,
ymax=6,
xtick={1,2,3,4},
ytick={2,4,6},
axis y discontinuity=crunch
]
\addplot[sharp plot]
coordinates {
(1,2)
(2,2)
(3,4)
(4,4)
};
\end{axis}
\end{tikzpicture}
\end{document}
xticklabels={June,July,August,September},ylabel=Dollars \$,
?....