pgfplot does not work properly when using ymode=log












0















The plot is working fine when axes are regular. The moment, y-axis changed to log scale it is showing only part of the plot. The dat file provided has around 9000 points. Any support will be appreciated. Thanks



documentclass{standalone}
usepackage{siunitx}
usepackage{tikz}
usepackage{pgfplots}
usepackage{verbatim}
usetikzlibrary{decorations}
usetikzlibrary{decorations.markings}
usetikzlibrary{plotmarks}
begin{document}


begin{tikzpicture}
begin{axis}[width=12cm,height=12cm,legend style={font=scriptsize,draw=none,at={(0.825,0.9)},anchor=north},
xmin=0, xmax=10000,ymin=1e-8,ymax=1e4, xtick={
-3.14159,-1.5708,0,
1.5708, 3.14159},
xticklabels={
$-pi$, $-frac{pi}{2}$,
$0$,$frac{pi}{2}$, $pi$},ytick={1e-8,1e4},
xlabel={Non-dimensional wave vector, $kappa$},
ylabel={Frequency, $omega$, SI{}{radianpersecond}}, mark repeat={15},domain=-3.14:3.14, restrict y to domain = 1e-8: 1e4,
xmin=0, xmax=10000,
ymin = 1e-8, ymax = 1e4,ymode=log,log basis y=10]
addplot [thick,color=blue] table{u_lmm.dat};
end{axis}
end{tikzpicture}
end{document}









share|improve this question




















  • 1





    Welcome to TeX.SE! Please show us the compilable tex code you have trouble with, then we do not have to guess what you are doing ...

    – Kurt
    Mar 17 at 12:43
















0















The plot is working fine when axes are regular. The moment, y-axis changed to log scale it is showing only part of the plot. The dat file provided has around 9000 points. Any support will be appreciated. Thanks



documentclass{standalone}
usepackage{siunitx}
usepackage{tikz}
usepackage{pgfplots}
usepackage{verbatim}
usetikzlibrary{decorations}
usetikzlibrary{decorations.markings}
usetikzlibrary{plotmarks}
begin{document}


begin{tikzpicture}
begin{axis}[width=12cm,height=12cm,legend style={font=scriptsize,draw=none,at={(0.825,0.9)},anchor=north},
xmin=0, xmax=10000,ymin=1e-8,ymax=1e4, xtick={
-3.14159,-1.5708,0,
1.5708, 3.14159},
xticklabels={
$-pi$, $-frac{pi}{2}$,
$0$,$frac{pi}{2}$, $pi$},ytick={1e-8,1e4},
xlabel={Non-dimensional wave vector, $kappa$},
ylabel={Frequency, $omega$, SI{}{radianpersecond}}, mark repeat={15},domain=-3.14:3.14, restrict y to domain = 1e-8: 1e4,
xmin=0, xmax=10000,
ymin = 1e-8, ymax = 1e4,ymode=log,log basis y=10]
addplot [thick,color=blue] table{u_lmm.dat};
end{axis}
end{tikzpicture}
end{document}









share|improve this question




















  • 1





    Welcome to TeX.SE! Please show us the compilable tex code you have trouble with, then we do not have to guess what you are doing ...

    – Kurt
    Mar 17 at 12:43














0












0








0








The plot is working fine when axes are regular. The moment, y-axis changed to log scale it is showing only part of the plot. The dat file provided has around 9000 points. Any support will be appreciated. Thanks



documentclass{standalone}
usepackage{siunitx}
usepackage{tikz}
usepackage{pgfplots}
usepackage{verbatim}
usetikzlibrary{decorations}
usetikzlibrary{decorations.markings}
usetikzlibrary{plotmarks}
begin{document}


begin{tikzpicture}
begin{axis}[width=12cm,height=12cm,legend style={font=scriptsize,draw=none,at={(0.825,0.9)},anchor=north},
xmin=0, xmax=10000,ymin=1e-8,ymax=1e4, xtick={
-3.14159,-1.5708,0,
1.5708, 3.14159},
xticklabels={
$-pi$, $-frac{pi}{2}$,
$0$,$frac{pi}{2}$, $pi$},ytick={1e-8,1e4},
xlabel={Non-dimensional wave vector, $kappa$},
ylabel={Frequency, $omega$, SI{}{radianpersecond}}, mark repeat={15},domain=-3.14:3.14, restrict y to domain = 1e-8: 1e4,
xmin=0, xmax=10000,
ymin = 1e-8, ymax = 1e4,ymode=log,log basis y=10]
addplot [thick,color=blue] table{u_lmm.dat};
end{axis}
end{tikzpicture}
end{document}









share|improve this question
















The plot is working fine when axes are regular. The moment, y-axis changed to log scale it is showing only part of the plot. The dat file provided has around 9000 points. Any support will be appreciated. Thanks



documentclass{standalone}
usepackage{siunitx}
usepackage{tikz}
usepackage{pgfplots}
usepackage{verbatim}
usetikzlibrary{decorations}
usetikzlibrary{decorations.markings}
usetikzlibrary{plotmarks}
begin{document}


begin{tikzpicture}
begin{axis}[width=12cm,height=12cm,legend style={font=scriptsize,draw=none,at={(0.825,0.9)},anchor=north},
xmin=0, xmax=10000,ymin=1e-8,ymax=1e4, xtick={
-3.14159,-1.5708,0,
1.5708, 3.14159},
xticklabels={
$-pi$, $-frac{pi}{2}$,
$0$,$frac{pi}{2}$, $pi$},ytick={1e-8,1e4},
xlabel={Non-dimensional wave vector, $kappa$},
ylabel={Frequency, $omega$, SI{}{radianpersecond}}, mark repeat={15},domain=-3.14:3.14, restrict y to domain = 1e-8: 1e4,
xmin=0, xmax=10000,
ymin = 1e-8, ymax = 1e4,ymode=log,log basis y=10]
addplot [thick,color=blue] table{u_lmm.dat};
end{axis}
end{tikzpicture}
end{document}






pgfplots






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 17 at 12:50







sabiju

















asked Mar 17 at 12:39









sabijusabiju

11




11








  • 1





    Welcome to TeX.SE! Please show us the compilable tex code you have trouble with, then we do not have to guess what you are doing ...

    – Kurt
    Mar 17 at 12:43














  • 1





    Welcome to TeX.SE! Please show us the compilable tex code you have trouble with, then we do not have to guess what you are doing ...

    – Kurt
    Mar 17 at 12:43








1




1





Welcome to TeX.SE! Please show us the compilable tex code you have trouble with, then we do not have to guess what you are doing ...

– Kurt
Mar 17 at 12:43





Welcome to TeX.SE! Please show us the compilable tex code you have trouble with, then we do not have to guess what you are doing ...

– Kurt
Mar 17 at 12:43










1 Answer
1






active

oldest

votes


















0














I agree to Kurt's commnet. Neither is you code compilable because you didn't provide (part of) your data file, nor did you show an image to illustrate what is "wrong"/not working. Thus, there is nothing we can do to help you. Your provided code works perfectly fine ...



% used PGFPlots v1.16
documentclass[border=5pt]{standalone}
usepackage{siunitx}
usepackage{tikz}
usepackage{pgfplots}
begin{document}
begin{tikzpicture}
begin{axis}[
width=12cm,
height=12cm,
xmin=0,
xmax=10000,
% (these `xticks` don't make much sense when `xmax=10000` ...)
xtick={-3.14159,-1.5708,0,1.5708,3.14159},
xticklabels={
$-pi$, $-frac{pi}{2}$,
$0$,$frac{pi}{2}$, $pi$
},
xlabel={Non-dimensional wave vector, $kappa$},
ymode=log,
ymin=1e-8,
ymax=1e4,
ytick={1e-8,1e4},
ylabel={Frequency, $omega$, SI{}{radianpersecond}},
]
% % (because you didn't provide any data ...
% addplot [thick,color=blue] table{u_lmm.dat};
% ... I just tested with the min and max values of the axis)
addplot coordinates { (0,1e-8) (10000,1e4) };
end{axis}
end{tikzpicture}
end{docum


image showing the result of above code






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',
    autoActivateHeartbeat: false,
    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%2f479923%2fpgfplot-does-not-work-properly-when-using-ymode-log%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









    0














    I agree to Kurt's commnet. Neither is you code compilable because you didn't provide (part of) your data file, nor did you show an image to illustrate what is "wrong"/not working. Thus, there is nothing we can do to help you. Your provided code works perfectly fine ...



    % used PGFPlots v1.16
    documentclass[border=5pt]{standalone}
    usepackage{siunitx}
    usepackage{tikz}
    usepackage{pgfplots}
    begin{document}
    begin{tikzpicture}
    begin{axis}[
    width=12cm,
    height=12cm,
    xmin=0,
    xmax=10000,
    % (these `xticks` don't make much sense when `xmax=10000` ...)
    xtick={-3.14159,-1.5708,0,1.5708,3.14159},
    xticklabels={
    $-pi$, $-frac{pi}{2}$,
    $0$,$frac{pi}{2}$, $pi$
    },
    xlabel={Non-dimensional wave vector, $kappa$},
    ymode=log,
    ymin=1e-8,
    ymax=1e4,
    ytick={1e-8,1e4},
    ylabel={Frequency, $omega$, SI{}{radianpersecond}},
    ]
    % % (because you didn't provide any data ...
    % addplot [thick,color=blue] table{u_lmm.dat};
    % ... I just tested with the min and max values of the axis)
    addplot coordinates { (0,1e-8) (10000,1e4) };
    end{axis}
    end{tikzpicture}
    end{docum


    image showing the result of above code






    share|improve this answer




























      0














      I agree to Kurt's commnet. Neither is you code compilable because you didn't provide (part of) your data file, nor did you show an image to illustrate what is "wrong"/not working. Thus, there is nothing we can do to help you. Your provided code works perfectly fine ...



      % used PGFPlots v1.16
      documentclass[border=5pt]{standalone}
      usepackage{siunitx}
      usepackage{tikz}
      usepackage{pgfplots}
      begin{document}
      begin{tikzpicture}
      begin{axis}[
      width=12cm,
      height=12cm,
      xmin=0,
      xmax=10000,
      % (these `xticks` don't make much sense when `xmax=10000` ...)
      xtick={-3.14159,-1.5708,0,1.5708,3.14159},
      xticklabels={
      $-pi$, $-frac{pi}{2}$,
      $0$,$frac{pi}{2}$, $pi$
      },
      xlabel={Non-dimensional wave vector, $kappa$},
      ymode=log,
      ymin=1e-8,
      ymax=1e4,
      ytick={1e-8,1e4},
      ylabel={Frequency, $omega$, SI{}{radianpersecond}},
      ]
      % % (because you didn't provide any data ...
      % addplot [thick,color=blue] table{u_lmm.dat};
      % ... I just tested with the min and max values of the axis)
      addplot coordinates { (0,1e-8) (10000,1e4) };
      end{axis}
      end{tikzpicture}
      end{docum


      image showing the result of above code






      share|improve this answer


























        0












        0








        0







        I agree to Kurt's commnet. Neither is you code compilable because you didn't provide (part of) your data file, nor did you show an image to illustrate what is "wrong"/not working. Thus, there is nothing we can do to help you. Your provided code works perfectly fine ...



        % used PGFPlots v1.16
        documentclass[border=5pt]{standalone}
        usepackage{siunitx}
        usepackage{tikz}
        usepackage{pgfplots}
        begin{document}
        begin{tikzpicture}
        begin{axis}[
        width=12cm,
        height=12cm,
        xmin=0,
        xmax=10000,
        % (these `xticks` don't make much sense when `xmax=10000` ...)
        xtick={-3.14159,-1.5708,0,1.5708,3.14159},
        xticklabels={
        $-pi$, $-frac{pi}{2}$,
        $0$,$frac{pi}{2}$, $pi$
        },
        xlabel={Non-dimensional wave vector, $kappa$},
        ymode=log,
        ymin=1e-8,
        ymax=1e4,
        ytick={1e-8,1e4},
        ylabel={Frequency, $omega$, SI{}{radianpersecond}},
        ]
        % % (because you didn't provide any data ...
        % addplot [thick,color=blue] table{u_lmm.dat};
        % ... I just tested with the min and max values of the axis)
        addplot coordinates { (0,1e-8) (10000,1e4) };
        end{axis}
        end{tikzpicture}
        end{docum


        image showing the result of above code






        share|improve this answer













        I agree to Kurt's commnet. Neither is you code compilable because you didn't provide (part of) your data file, nor did you show an image to illustrate what is "wrong"/not working. Thus, there is nothing we can do to help you. Your provided code works perfectly fine ...



        % used PGFPlots v1.16
        documentclass[border=5pt]{standalone}
        usepackage{siunitx}
        usepackage{tikz}
        usepackage{pgfplots}
        begin{document}
        begin{tikzpicture}
        begin{axis}[
        width=12cm,
        height=12cm,
        xmin=0,
        xmax=10000,
        % (these `xticks` don't make much sense when `xmax=10000` ...)
        xtick={-3.14159,-1.5708,0,1.5708,3.14159},
        xticklabels={
        $-pi$, $-frac{pi}{2}$,
        $0$,$frac{pi}{2}$, $pi$
        },
        xlabel={Non-dimensional wave vector, $kappa$},
        ymode=log,
        ymin=1e-8,
        ymax=1e4,
        ytick={1e-8,1e4},
        ylabel={Frequency, $omega$, SI{}{radianpersecond}},
        ]
        % % (because you didn't provide any data ...
        % addplot [thick,color=blue] table{u_lmm.dat};
        % ... I just tested with the min and max values of the axis)
        addplot coordinates { (0,1e-8) (10000,1e4) };
        end{axis}
        end{tikzpicture}
        end{docum


        image showing the result of above code







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 17 at 20:45









        Stefan PinnowStefan Pinnow

        20.3k83477




        20.3k83477






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479923%2fpgfplot-does-not-work-properly-when-using-ymode-log%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

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents