I have a const plot with intervals on the y-axis. I'd like my y labels to be centered in each bar, as it would be if this were an xbar interval graph.
Also, and more importantly, I'd like more flexibility and control in the y label intervals. Can I, for instance, include every other interval, as in [0,.05) [.1,.15) etc., with that gap in between?
Finally, is there an easy way to make the last interval a closed bracket on both sides?
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
height=10cm,
const plot,
y tick label as interval=true,
ytick=,
yticklabel={$[\pgfmathprintnumber\tick, \pgfmathprintnumber\nexttick)$},
enlargelimits=false,
ymin=0,
xmin=0
]
\addplot [fill=blue,opacity=.6,draw=blue]
coordinates
{(0,0) (393,0.000) (93,0.050) (44,0.100) (49,0.150) (31,0.200) (32,0.250) (37,0.300) (52,0.350) (90,0.400) (30,0.450) (26,0.500) (11,0.550) (32,0.600) (31,0.650) (15,0.700) (33,0.750) (18,0.800) (25,0.850) (31,0.900) (162,0.950) (0,1)};
\end{axis}
\end{tikzpicture}
\end{document}

