On 30/10/2010 16:22, Stefan Schulze Frielinghaus wrote: > Hi all, > > the colormap of an 3D plot does not reflect the actual data in my case. > I played quite a long time with it and couldn't figure out what's going > wrong, so here is a minimal example: > > \documentclass{minimal} > > \usepackage{tikz} > \usepackage{pgfplots} > > \pgfplotsset{compat=1.3} > > \begin{document} > \begin{tikzpicture} > \begin{axis}[view={0}{90}, colorbar] > \addplot3[surf] file {test.dat}; > \end{axis} > \end{tikzpicture} > \end{document} > > The attached file contains the test data set. I was expecting that the > diagonal gets a color of dark blue because all values of the diagonal > are zeros. Or in other words x==y => z=0.0 > But the diagonals color is yellow/orange and according to the colorbar > this would be a value completely different than zero (~10^8). > > Is this a problem because of big numbers? Does someone had a similar > problem before? Any hints are really appreciated. > > Best regards, > Stefan > > PS: I'm using pgfplots-1.4.1
Did you try varying the other corners of each square? From my quick tests, I think that the colour is based on the average of the four corners. So in your case everything is moved up as three of the four corners are big values and only one is zero. -- Joseph Wright ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features