I tried many solutions which were about similar question, but nothing helped... I have a bar chart in Latex, which contains values from 2 550 to 18 016. I want to have numbers on y axis: 0, 5 000, 10 000, 15 000, 20 000. But I have problem, that instead of 20 000 there is strange number 16 384 (I want to have 20 000 there) and also 10^4 (I dont want to see this number). Is there any easy solution for this? My current code is:
\begin{axis}[
title = Počet matchupov,
ybar,
nodes near coords, bar width=0.4cm,
symbolic x coords={PvZ, TvZ, PvT, TvT, PvP, ZvZ},
yticklabel = {\pgfmathparse{\tick*10000}\pgfmathprintnumber{\pgfmathresult}}, y grid style={dashed,black!60},
ymajorticks=true,
ymin=0, ymax=20000,
ytick style={black},]
\addplot coordinates{(PvZ, 18016)(TvZ, 14531)(PvT, 17385)(TvT, 2550)(PvP, 7015)(ZvZ, 6149)};
\end{axis}
\end{tikzpicture}

