I'm trying to make a bar chart with really small x-increments. I used this code:
\begin{axis}[ymin=0, ymax=30, minor y tick num = 5, area style,] \addplot+[ybar interval,mark=no] plot coordinates { (0.13, 15) (0.191, 17) (0.252, 26) (0.313, 3) (0.374, 3) (0.435, 3) (0.496, 5) (0.56, 0)}; \end{axis} \end{tikzpicture}
Which produced this picture:
The problem is that the numbers that appear under the x-axis have nothing to do with the numbers I want to plot. I think the bars are in place, it's just that the numbers that show up are 0.1, 0.2, 0.3, etc. but my plot starts at 0.13 and has increments of 0.061 . I would like those values to appear (i.e. 0.13, 0.191, 0.252, and so on) instead.
I have tried defining xmin
and xmax
values and definig the xbar interval, but nothing seems to work. I would really appreciate any help.
\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.