Customizing single ticks in TikZ datavisualization











up vote
1
down vote

favorite












This question is a follow-up of my other question:



MWE:



documentclass{scrartcl}
usepackage{tikz}
usetikzlibrary{datavisualization.formats.functions}
begin{document}

begin{tikzpicture}
datavisualization[
scientific axes = {clean},
x axis = {
include value = 0,
ticks={
step = 500,
minor steps between steps = 4,
stack
}
},
y axis = {
include value = .2,
ticks = {
step = .02,
minor steps between steps = 1,
style = {
/pgf/number format/fixed, % rounds the number to ''precision''
/pgf/number format/fixed zerofill, % fills the number up to ''precision''
/pgf/number format/precision = 2
}
}
},
visualize as smooth line
]
data[format = function] {
var x : interval[100 : 3500];
func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
};
end{tikzpicture}

end{document}


The result:



result



Wished result:



wish



The changed ticks should have the same fontsize and shouldn't be bold (the picture is a bit unclear).



Thank you for your help and effort in advance!










share|improve this question






















  • My crystal ball tells me you need only to get rid of /pgf/number format/fixed zerofill. ;-)
    – marmot
    11 hours ago















up vote
1
down vote

favorite












This question is a follow-up of my other question:



MWE:



documentclass{scrartcl}
usepackage{tikz}
usetikzlibrary{datavisualization.formats.functions}
begin{document}

begin{tikzpicture}
datavisualization[
scientific axes = {clean},
x axis = {
include value = 0,
ticks={
step = 500,
minor steps between steps = 4,
stack
}
},
y axis = {
include value = .2,
ticks = {
step = .02,
minor steps between steps = 1,
style = {
/pgf/number format/fixed, % rounds the number to ''precision''
/pgf/number format/fixed zerofill, % fills the number up to ''precision''
/pgf/number format/precision = 2
}
}
},
visualize as smooth line
]
data[format = function] {
var x : interval[100 : 3500];
func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
};
end{tikzpicture}

end{document}


The result:



result



Wished result:



wish



The changed ticks should have the same fontsize and shouldn't be bold (the picture is a bit unclear).



Thank you for your help and effort in advance!










share|improve this question






















  • My crystal ball tells me you need only to get rid of /pgf/number format/fixed zerofill. ;-)
    – marmot
    11 hours ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











This question is a follow-up of my other question:



MWE:



documentclass{scrartcl}
usepackage{tikz}
usetikzlibrary{datavisualization.formats.functions}
begin{document}

begin{tikzpicture}
datavisualization[
scientific axes = {clean},
x axis = {
include value = 0,
ticks={
step = 500,
minor steps between steps = 4,
stack
}
},
y axis = {
include value = .2,
ticks = {
step = .02,
minor steps between steps = 1,
style = {
/pgf/number format/fixed, % rounds the number to ''precision''
/pgf/number format/fixed zerofill, % fills the number up to ''precision''
/pgf/number format/precision = 2
}
}
},
visualize as smooth line
]
data[format = function] {
var x : interval[100 : 3500];
func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
};
end{tikzpicture}

end{document}


The result:



result



Wished result:



wish



The changed ticks should have the same fontsize and shouldn't be bold (the picture is a bit unclear).



Thank you for your help and effort in advance!










share|improve this question













This question is a follow-up of my other question:



MWE:



documentclass{scrartcl}
usepackage{tikz}
usetikzlibrary{datavisualization.formats.functions}
begin{document}

begin{tikzpicture}
datavisualization[
scientific axes = {clean},
x axis = {
include value = 0,
ticks={
step = 500,
minor steps between steps = 4,
stack
}
},
y axis = {
include value = .2,
ticks = {
step = .02,
minor steps between steps = 1,
style = {
/pgf/number format/fixed, % rounds the number to ''precision''
/pgf/number format/fixed zerofill, % fills the number up to ''precision''
/pgf/number format/precision = 2
}
}
},
visualize as smooth line
]
data[format = function] {
var x : interval[100 : 3500];
func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
};
end{tikzpicture}

end{document}


The result:



result



Wished result:



wish



The changed ticks should have the same fontsize and shouldn't be bold (the picture is a bit unclear).



Thank you for your help and effort in advance!







tikz-pgf tikz-datavisualization






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 13 hours ago









Su-47

948519




948519












  • My crystal ball tells me you need only to get rid of /pgf/number format/fixed zerofill. ;-)
    – marmot
    11 hours ago


















  • My crystal ball tells me you need only to get rid of /pgf/number format/fixed zerofill. ;-)
    – marmot
    11 hours ago
















My crystal ball tells me you need only to get rid of /pgf/number format/fixed zerofill. ;-)
– marmot
11 hours ago




My crystal ball tells me you need only to get rid of /pgf/number format/fixed zerofill. ;-)
– marmot
11 hours ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You only need to get rid of /pgf/number format/fixed zerofill. If you want to have the ticks left aligned as in your screen shot, you could add node style={align=left,text width=6mm}.



documentclass{scrartcl}
usepackage{tikz}
usetikzlibrary{datavisualization.formats.functions}
begin{document}

begin{tikzpicture}
datavisualization[
scientific axes = {clean},
x axis = {
include value = 0,
ticks={
step = 500,
minor steps between steps = 4,
stack
}
},
y axis = {
include value = .2,
ticks = {
step = .02,
minor steps between steps = 1,
style = {
/pgf/number format/fixed, % rounds the number to ''precision''
%/pgf/number format/fixed zerofill, % fills the number up to ''precision''
/pgf/number format/precision=2,
},
node style={align=left,text width=6mm}
}
},
visualize as smooth line
]
data[format = function] {
var x : interval[100 : 3500];
func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
};
end{tikzpicture}

end{document}


enter image description here






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461846%2fcustomizing-single-ticks-in-tikz-datavisualization%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You only need to get rid of /pgf/number format/fixed zerofill. If you want to have the ticks left aligned as in your screen shot, you could add node style={align=left,text width=6mm}.



    documentclass{scrartcl}
    usepackage{tikz}
    usetikzlibrary{datavisualization.formats.functions}
    begin{document}

    begin{tikzpicture}
    datavisualization[
    scientific axes = {clean},
    x axis = {
    include value = 0,
    ticks={
    step = 500,
    minor steps between steps = 4,
    stack
    }
    },
    y axis = {
    include value = .2,
    ticks = {
    step = .02,
    minor steps between steps = 1,
    style = {
    /pgf/number format/fixed, % rounds the number to ''precision''
    %/pgf/number format/fixed zerofill, % fills the number up to ''precision''
    /pgf/number format/precision=2,
    },
    node style={align=left,text width=6mm}
    }
    },
    visualize as smooth line
    ]
    data[format = function] {
    var x : interval[100 : 3500];
    func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
    };
    end{tikzpicture}

    end{document}


    enter image description here






    share|improve this answer

























      up vote
      0
      down vote













      You only need to get rid of /pgf/number format/fixed zerofill. If you want to have the ticks left aligned as in your screen shot, you could add node style={align=left,text width=6mm}.



      documentclass{scrartcl}
      usepackage{tikz}
      usetikzlibrary{datavisualization.formats.functions}
      begin{document}

      begin{tikzpicture}
      datavisualization[
      scientific axes = {clean},
      x axis = {
      include value = 0,
      ticks={
      step = 500,
      minor steps between steps = 4,
      stack
      }
      },
      y axis = {
      include value = .2,
      ticks = {
      step = .02,
      minor steps between steps = 1,
      style = {
      /pgf/number format/fixed, % rounds the number to ''precision''
      %/pgf/number format/fixed zerofill, % fills the number up to ''precision''
      /pgf/number format/precision=2,
      },
      node style={align=left,text width=6mm}
      }
      },
      visualize as smooth line
      ]
      data[format = function] {
      var x : interval[100 : 3500];
      func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
      };
      end{tikzpicture}

      end{document}


      enter image description here






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        You only need to get rid of /pgf/number format/fixed zerofill. If you want to have the ticks left aligned as in your screen shot, you could add node style={align=left,text width=6mm}.



        documentclass{scrartcl}
        usepackage{tikz}
        usetikzlibrary{datavisualization.formats.functions}
        begin{document}

        begin{tikzpicture}
        datavisualization[
        scientific axes = {clean},
        x axis = {
        include value = 0,
        ticks={
        step = 500,
        minor steps between steps = 4,
        stack
        }
        },
        y axis = {
        include value = .2,
        ticks = {
        step = .02,
        minor steps between steps = 1,
        style = {
        /pgf/number format/fixed, % rounds the number to ''precision''
        %/pgf/number format/fixed zerofill, % fills the number up to ''precision''
        /pgf/number format/precision=2,
        },
        node style={align=left,text width=6mm}
        }
        },
        visualize as smooth line
        ]
        data[format = function] {
        var x : interval[100 : 3500];
        func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
        };
        end{tikzpicture}

        end{document}


        enter image description here






        share|improve this answer












        You only need to get rid of /pgf/number format/fixed zerofill. If you want to have the ticks left aligned as in your screen shot, you could add node style={align=left,text width=6mm}.



        documentclass{scrartcl}
        usepackage{tikz}
        usetikzlibrary{datavisualization.formats.functions}
        begin{document}

        begin{tikzpicture}
        datavisualization[
        scientific axes = {clean},
        x axis = {
        include value = 0,
        ticks={
        step = 500,
        minor steps between steps = 4,
        stack
        }
        },
        y axis = {
        include value = .2,
        ticks = {
        step = .02,
        minor steps between steps = 1,
        style = {
        /pgf/number format/fixed, % rounds the number to ''precision''
        %/pgf/number format/fixed zerofill, % fills the number up to ''precision''
        /pgf/number format/precision=2,
        },
        node style={align=left,text width=6mm}
        }
        },
        visualize as smooth line
        ]
        data[format = function] {
        var x : interval[100 : 3500];
        func y = .2 * ( 1 - exp( - (value x - 100) / 606) );
        };
        end{tikzpicture}

        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 10 hours ago









        marmot

        78.3k487166




        78.3k487166






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461846%2fcustomizing-single-ticks-in-tikz-datavisualization%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux