Why do I have zero as contour value with pgfplots?

I am making a contour plot, and the MWE below produces the result Why do I have zero as contour value with pgfplots?

i.e.the contour lines with value 10^{-6} and below are simply marked by 0. Did I hit some number representation limit?

\documentclass[A4]{memoir} \usepackage{tikz} \usepackage{pgfplots} \usepackage{filecontents}  \usepackage{pgfplots}  \usepackage{pgfplotstable} \pgfplotstableset{%     col sep=semicolon,     x index=0,     y index=1,     header=false }%  \begin{filecontents*}{XYZ.csv}    2016; 1;       33e-9    2016; 2;      199e-9    2016; 3;      966e-9    2016; 4;      110e-9     2015; 1;      199e-9    2015; 2;      966e-9    2015; 3;      110e-9    2015; 4;      104e-9     2014; 1;      199e-9    2014; 2;      965e-9    2014; 3;      110e-9    2014; 4;      104e-9     2006; 1;     2349e-9    2006; 2;     6528e-9    2006; 3;    18405e-9    2006; 4;    17250e-9     1993; 1;  1167453e-9    1993; 2;  2376539e-9    1993; 3;  2262076e-9    1993; 4;  2262076e-9  \end{filecontents*}  \begin{document} \begin{tikzpicture}     \begin{axis}[view = {0}{90}] ,zmode=log, log base=10 ]%         \addplot3[%             surf,shader=interp,opacity=0.8         ] table {XYZ.csv};         \addplot3[%             contour gnuplot={levels={.0000001,.000001,.00001,.0001,.001,.01,.1},draw color=black},         ] table {XYZ.csv};     \end{axis} \end{tikzpicture}  \end{document} 


Category: pgpplot Time: 2016-07-30 Views: 0
Tags: pgpplot

Related post

  • OpenGL: why do I have to set a normal with glNormal? 2013-03-08

    I'm learning some basics of OpenGL but I'm wondering why there is a call glNormal to set the normal of vertices. If I create a simple triangle like this: glBegin(GL_TRIANGLES); glVertex3f(0,0,0); glVertex3f(1,0,0); glVertex3f(0,1,0); glEnd(); Shouldn

  • Why won't SparseArray let me store values with the head List? 2014-09-05

    When you attempt to define a SparseArray with elements that have the head List it complains: SparseArray[{1 -> {1, 2, 3}, 2 -> {"a", "b"}}] SparseArray::valnl: The value specified by the rule 1->{1,2,3} should not be a List. &

  • Why do I have to execute bash programs with ./? 2014-07-02

    This question already has an answer here: Why do we use "./" to execute a file? 4 answers What is the difference between running "bash script.sh" and "./script.sh"? 2 answers Why is it that some bash programs will only run on

  • Why do I have to edit /etc/sudoers with visudo? 2009-06-16

    I've noticed that the sudoers file and cron config files act in a special way compared to other config files on Linux. They need to be edited with a special wrapper rather than any text editor. Why is this? --------------Solutions------------- You us

  • Why do I have to log into ssh with my password once per day? 2014-01-23

    When I try to ssh using an encrypted key held in ssh-agent, I get the following (using ssh -vvv): debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/cowens/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publi

  • How to coherently combine 3D and contour plots with pgfplots 2012-12-19

    Both contour and 3d plots can be done easily in pgfplots, but I have a hard time combining them nicely. Here's an example of what I'd like to achieve (from the matplotlib examples): --------------Solutions------------- Pgfplots can compute the z cont

  • How can I have text along a path with pgfplots with marks? 2014-12-11

    I am using the decorations.text library to set text along a path drawn by pgfplots. The decoration works fine without marks, as suggested in this answer, but with marks on the path, the compilation fails with Package pgf Error: I cannot decorate an e

  • ContourPlot Legend with colorbar for arbitrary contour values 2013-08-15

    I have a ContourPlot in which I have specified the contour-values myself as Contours->{0.01, 0.05, 0.1, 0.2, 0.3}. I would like to get the corresponding contour-values to be shown in the color-bar in the Legend. How do I do this? To get the max and m

  • How to assign values with foreach? 2012-08-27

    I have trouble to assign values with \foreach. Can somebody help me? The following code is wrong. The purpose is to asing the values: \lx1=1, \ly1=2, \lz1=3, for example. \foreach \x/\y in {\lx1/1,\ly1/2,\lz1/3} {% \def\x{\y} \x{\y} { --------------S

  • Arcpy:Set min height for contour area, with surrounding contour lines 2015-03-16

    I'm trying to create a tool that will calculate the min depth and the max depth of a contour polygon, based on the value of the depth attributes of the surrounding contour lines. This is what I have so far. def main(): pass if __name__ == '__main__':

  • Why do we have something like "-3.5ex \@plus‎ -‎1ex \@minus‎ -‎.2ex" instead of a fixed value? 2013-01-09

    Possible Duplicate: What is glue stretching? In the book class, we have the following. ‎\newcommand\section{\@startsection {section}{1}{\[email protected]}%‎ ‎{-3.5ex \@plus‎ -‎1ex \@minus‎ -‎.2ex}%‎ ‎{2.3ex \@plus.2ex}%‎ ‎{\normalfont\Large\bfseries}}‎ I want to k

  • Batteries have zero voltage 2014-06-26

    According to Ohm's law V=IR. This means that if the current is zero there is no voltage. Does this mean also that an unplugged battery has zero voltage? Then why does it say otherwise in the package. In other words: What does it mean that a battery i

  • Why do I have Established TCP connections with no owner PID? 2015-09-02

    Both ss --processes and netstat --program (with sudo) list some ESTABLISHED TCP connections to local port 6514 with non-zero Recv-Q values and no owner process (netstat output shows - where PID/command should be). There are other established TCP conn

  • Center my contour values in QGIS 2015-12-22

    In QGIS have an issue with my contour value labels being pushed to the edge of my map, instead of lining up at the center where they seem to have more space. Does anyone know why this happens for some and not all? Can someone help me to get them all

  • Why do you have to use the nominal voltage of the transformer for the no-load or open-circuit test? 2015-12-27

    I was wondering why exactly you have to use the nominal voltage of the transformer for the open-circuit or no-load test. Is this also the voltage over the parallel elements, even in a situation where the transormer is loaded? Or in other words, do th

  • Why do we have postfix increment? 2011-01-31

    Disclaimer: I know perfectly well the semantics of prefix and postfix increment. So please don't explain to me how they work. Reading questions on stack overflow, I cannot help but notice that programmers get confused by the postfix increment operato

  • Why do I have so many apache2 processes? 2011-05-21

    I have a Debian 6.0.1 machine running GNU/kFreeBSD 8.1-1-amd64 and Apache. I installed apache2-mpm-worker using apt-get, and my apache2.conf file contains: <IfModule mpm_prefork_module> StartServers 4 MinSpareServers 2 MaxSpareServers 5 MaxClients 1

  • Why does USB have 4 lines instead of 3? 2011-09-26

    USB specifies 4 pins: 1. VBUS +5V 2. D- Data- 3. D+ Data+ 4. GND Ground Why is this not 3? Could the Data and Power not share a common ground? Am I correct in understanding that D- is the ground for D+? --------------Solutions------------- No, D- is

  • Why are so many languages passed by value? 2012-06-19

    Even languages where you have explicit pointer manipulation like C it's always passed by value (you can pass them by reference but that's not the default behavior). What is the benefit of this, why are so many languages passed by values and why are o

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C) avrocks.com, All Rights Reserved.

processed in 2.440 (s). 13 q(s)