I have this bar graph, and I want to do 3 things:
- Remove the numbers in the bars, they are overlapping (If possible keep only one, symbolizing that both bars have the same value);
- Within the frame of the legend, enter "Data Size" and then the values of 10KB and 20KB;
- Change the y-axis value to 28
The code I'm using:
\begin{tikzpicture}
\begin{axis}[
ybar,
enlargelimits=0.3,
legend style={at={(0.5 ,-0.20)},
anchor=north,legend columns =-1},
ylabel ={Memory Usage (KB)},
xlabel ={Transmissions},
symbolic x coords ={10,100,250},
xtick=data,
nodes near coords ,
nodes near coords align ={vertical},
]
\addplot coordinates {(10,25.4) (100,25.4) (250,25.4)};
\addplot coordinates {(10,25.4) (100,25.4) (250,25.4)};
\legend{10KB,20KB}
\end{axis}
\end{tikzpicture}
The graph I have is this:



\addplot[nodes near coords, fill = blue!30] coordinates {(10,25.4) (100,25.4) (250,25.4)};– caverac Dec 29 '18 at 18:58