Good evening Adam, As already mentioned in a previous mail, the \pgfplotspointmeta macro expands to the log coordinate which leads to unwanted results here.
There are basically two alternatives to access the original value: 1. compute it : *nodes* *near* *coords*=\rotatebox{45}{{\pgfkeys{/pgf/fpu}\pgfmathparse{exp(\pgfplotspointmeta)}\pgfmathprintnumber[sci]\pgfmathresult}}, the [sci] uses scientific notation here. 2. do some technical thing to (re)store the original value. This should lead to the same result (but has slightly higher precision): *nodes* *near* *coords*=\rotatebox{90}{\pgfmathprintnumber[sci]\value}, visualization depends on=rawy \as \value, the 'rawy' is a math "constant" which always expands to the unprocessed ("raw") y coordinate. I hope this helps. Best regards Christian PS I deliberately took the freedom and posted a copy of the reply to the pgfplots mailing list. Am 22.09.2011 23:18, schrieb Adam Edgar: > I have been trying to construct a bar graph of data that is best represented > with a logarithmic scale for the Y axis. On this graph I would like to > display the value above each bar. However what is displayed above each bar > seems to be the power of 10 not the original value. This is probably best > presented as a visual but I am not sure if you can/want to receive files > attached. So below I have put the code I used to generate the graphs and > hopefully you'll see my issue: > > \documentclass{article} > \usepackage{fullpage} > \usepackage{tikz} > \usepackage{pgfplots} > \pgfplotsset{width=\linewidth,scale only axis,height=6cm} > \begin{document} > \begin{tikzpicture}[scale=1.0] > \begin{axis}[ > ymode=log, > width=\linewidth, > anchor=north west, > legend style={at={(0.5,-0.15)}, anchor=north, legend columns=-1}, > enlargelimits=0.1, > ybar, > ylabel=Time(s), > symbolic x coords={1-Proc,2-Proc,4-Proc,8-Proc,16-Proc,32-Proc,64-Proc}, > xtick=data, > nodes near coords, > bar width=19pt, > enlarge x limits=0.10, > nodes near coords=\rotatebox{45}{\pgfmathprintnumber{\pgfplotspointmeta}}, > ] > \addplot coordinates {(1-Proc,8.20) (2-Proc,8.66) > (4-Proc,10.40)(8-Proc,17.46)(16-Proc,35.71)(32-Proc,91.18)(64-Proc,68.39)}; > \addplot coordinates {(1-Proc,0.23) (2-Proc,0.49) > (4-Proc,1.15)(8-Proc,6.33)(16-Proc,20.69)(32-Proc,115.24)(64-Proc,340.13)}; > \legend{User,System} > \end{axis} > \end{tikzpicture} > \end{document} > > > I believe the issue is related to the fact that \pgfplotspointmeta has been > modified in order to calculate the height of the bar and is not available in > its original form when \pgfmathprintnumber is called on it. Do you have any > suggestions on how to get the original value back for display? > > Thanks much, > > ASE ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features