How to plot a function for big range of values?

Is Diceware more secure than a long passphrase?

Function pointer with named arguments?

What is the most expensive material in the world that could be used to create Pun-Pun's lute?

What is the philosophical significance of speech acts/implicature?

How much cash can I safely carry into the USA and avoid civil forfeiture?

Like totally amazing interchangeable sister outfits II: The Revenge

What does ゆーか mean?

How did Captain America manage to do this?

Rivers without rain

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

Aliens crash on Earth and go into stasis to wait for technology to fix their ship

Mistake in years of experience in resume?

Classification of surfaces

What happened to Captain America in Endgame?

bldc motor, esc and battery draw, nominal vs peak

Should the Death Curse affect an undead PC in the Tomb of Annihilation adventure?

Can I grease a crank spindle/bracket without disassembling the crank set?

On The Origin of Dissonant Chords

How to fry ground beef so it is well-browned

What makes accurate emulation of old systems a difficult task?

Why does Mind Blank stop the Feeblemind spell?

Can someone publish a story that happened to you?

Can we say “you can pay when the order gets ready”?

Contradiction proof for inequality of P and NP?



How to plot a function for big range of values?














0















I use Maple to plot a funtion f(x) = x*(x-6)*(x-12)*(x-20), where x = -.8 .. 21.
enter image description here



I tried to draw it by pgfplots, but I can not get the result.



documentclass[tikz]{standalone}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepackage{fouriernc}
usepackage{tikz}
pgfplotsset{every axis/.append style={
axis x line=middle,
axis y line=middle,
xlabel={$x$},
ylabel={$y$},
},
framed/.style={axis background/.style ={draw=black}},
}



% arrow style
tikzset{>=stealth}



begin{document}
begin{tikzpicture}[
declare function={
f(x)=x*(x-6)*(x-12)*(x-20);
}
]
begin{axis}[
framed, grid=both,
axis equal,
axis x line=middle, axis y line=middle,
axis line style = very thick,
ymin=-1.5, ymax=20,
yticklabels={},
width=22 cm,
height=2850cm, xticklabels={},
samples=500,
]
addplot[blue, very thick,domain=-1:21, smooth]{f(x)};
end{axis}
end{tikzpicture}
end{document}


How can I draw it?









share



























    0















    I use Maple to plot a funtion f(x) = x*(x-6)*(x-12)*(x-20), where x = -.8 .. 21.
    enter image description here



    I tried to draw it by pgfplots, but I can not get the result.



    documentclass[tikz]{standalone}
    usepackage{pgfplots}
    pgfplotsset{compat=1.16}
    usepackage{fouriernc}
    usepackage{tikz}
    pgfplotsset{every axis/.append style={
    axis x line=middle,
    axis y line=middle,
    xlabel={$x$},
    ylabel={$y$},
    },
    framed/.style={axis background/.style ={draw=black}},
    }



    % arrow style
    tikzset{>=stealth}



    begin{document}
    begin{tikzpicture}[
    declare function={
    f(x)=x*(x-6)*(x-12)*(x-20);
    }
    ]
    begin{axis}[
    framed, grid=both,
    axis equal,
    axis x line=middle, axis y line=middle,
    axis line style = very thick,
    ymin=-1.5, ymax=20,
    yticklabels={},
    width=22 cm,
    height=2850cm, xticklabels={},
    samples=500,
    ]
    addplot[blue, very thick,domain=-1:21, smooth]{f(x)};
    end{axis}
    end{tikzpicture}
    end{document}


    How can I draw it?









    share

























      0












      0








      0








      I use Maple to plot a funtion f(x) = x*(x-6)*(x-12)*(x-20), where x = -.8 .. 21.
      enter image description here



      I tried to draw it by pgfplots, but I can not get the result.



      documentclass[tikz]{standalone}
      usepackage{pgfplots}
      pgfplotsset{compat=1.16}
      usepackage{fouriernc}
      usepackage{tikz}
      pgfplotsset{every axis/.append style={
      axis x line=middle,
      axis y line=middle,
      xlabel={$x$},
      ylabel={$y$},
      },
      framed/.style={axis background/.style ={draw=black}},
      }



      % arrow style
      tikzset{>=stealth}



      begin{document}
      begin{tikzpicture}[
      declare function={
      f(x)=x*(x-6)*(x-12)*(x-20);
      }
      ]
      begin{axis}[
      framed, grid=both,
      axis equal,
      axis x line=middle, axis y line=middle,
      axis line style = very thick,
      ymin=-1.5, ymax=20,
      yticklabels={},
      width=22 cm,
      height=2850cm, xticklabels={},
      samples=500,
      ]
      addplot[blue, very thick,domain=-1:21, smooth]{f(x)};
      end{axis}
      end{tikzpicture}
      end{document}


      How can I draw it?









      share














      I use Maple to plot a funtion f(x) = x*(x-6)*(x-12)*(x-20), where x = -.8 .. 21.
      enter image description here



      I tried to draw it by pgfplots, but I can not get the result.



      documentclass[tikz]{standalone}
      usepackage{pgfplots}
      pgfplotsset{compat=1.16}
      usepackage{fouriernc}
      usepackage{tikz}
      pgfplotsset{every axis/.append style={
      axis x line=middle,
      axis y line=middle,
      xlabel={$x$},
      ylabel={$y$},
      },
      framed/.style={axis background/.style ={draw=black}},
      }



      % arrow style
      tikzset{>=stealth}



      begin{document}
      begin{tikzpicture}[
      declare function={
      f(x)=x*(x-6)*(x-12)*(x-20);
      }
      ]
      begin{axis}[
      framed, grid=both,
      axis equal,
      axis x line=middle, axis y line=middle,
      axis line style = very thick,
      ymin=-1.5, ymax=20,
      yticklabels={},
      width=22 cm,
      height=2850cm, xticklabels={},
      samples=500,
      ]
      addplot[blue, very thick,domain=-1:21, smooth]{f(x)};
      end{axis}
      end{tikzpicture}
      end{document}


      How can I draw it?







      pgfplots





      share












      share










      share



      share










      asked 1 min ago









      minhthien_2016minhthien_2016

      1,4861917




      1,4861917






















          0






          active

          oldest

          votes












          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%2f487859%2fhow-to-plot-a-function-for-big-range-of-values%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f487859%2fhow-to-plot-a-function-for-big-range-of-values%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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...