How to show the origin $O$ in a tickpizcture graph












2















This could be a silly question, but how would you modify the codes below to show the origin $O$ without change the xmin and ymin values?



The following is the resulting graph from the code.



graph



documentclass{article}
usepackage[margin=0.5in]{geometry}
usepackage{pgfplots}
renewcommand{thesection}{arabic{section}}
usepackage{mathtools}
usepackage{cancel}
usepackage{pgfplots}
usepackage{amsmath}
setlengthparskip{0pt}
begin{center}}{end{center}}
begin{document}
textbf{Question 3} (10 marks)\[0.124cm]
begin{center}
begin{tikzpicture}[scale=0.8]
begin{axis}[
axis lines=middle,
grid=major,
minor tick num=4,
grid=both,
grid style={line width=.1pt, draw=gray!30},
major grid style={line width=.2pt,draw=gray!50},
xmin=0,
xmax=61,
ymin=0,
ymax=122,
height=14cm,
width=15cm,
xlabel=$textit{Time (minutes)}$,
ylabel=$textit{Cumulative Frequency}$,
xtick={0,5,10,15,20,25,30,35,40,45,50,55,60},
%symbolic x coords={0,5,10,15,20,25,30,35,40,45,50,55,60},
ytick={0,10,20,30,40,50,60,70,80,90,100,110,120},
%ylabel=textit{distance}text{ (cm)},
ylabel style={
anchor=south,
at={(ticklabel* cs:1.0)},
yshift=5pt
},
xlabel style={
anchor=west,
at={(ticklabel* cs:1.0)},
xshift=5pt
},
%xlabel=textit{t}text{ (s)},
%yticklabel style={
%fill=white,
%yshift=10pt,
%},
%xticklabel style={
%xshift=10pt,
%fill=white
%},
]
draw [thick] (axis cs:5,0) edge[bend right=30] (axis cs:40,60);
draw [thick] (axis cs:40,60) edge[bend left=10] (axis cs:60,120);
%
node [below] at (axis cs:-1,0) {$O$};
end{axis}
newline
end{tikzpicture}
end{center}
end{document}









share|improve this question



























    2















    This could be a silly question, but how would you modify the codes below to show the origin $O$ without change the xmin and ymin values?



    The following is the resulting graph from the code.



    graph



    documentclass{article}
    usepackage[margin=0.5in]{geometry}
    usepackage{pgfplots}
    renewcommand{thesection}{arabic{section}}
    usepackage{mathtools}
    usepackage{cancel}
    usepackage{pgfplots}
    usepackage{amsmath}
    setlengthparskip{0pt}
    begin{center}}{end{center}}
    begin{document}
    textbf{Question 3} (10 marks)\[0.124cm]
    begin{center}
    begin{tikzpicture}[scale=0.8]
    begin{axis}[
    axis lines=middle,
    grid=major,
    minor tick num=4,
    grid=both,
    grid style={line width=.1pt, draw=gray!30},
    major grid style={line width=.2pt,draw=gray!50},
    xmin=0,
    xmax=61,
    ymin=0,
    ymax=122,
    height=14cm,
    width=15cm,
    xlabel=$textit{Time (minutes)}$,
    ylabel=$textit{Cumulative Frequency}$,
    xtick={0,5,10,15,20,25,30,35,40,45,50,55,60},
    %symbolic x coords={0,5,10,15,20,25,30,35,40,45,50,55,60},
    ytick={0,10,20,30,40,50,60,70,80,90,100,110,120},
    %ylabel=textit{distance}text{ (cm)},
    ylabel style={
    anchor=south,
    at={(ticklabel* cs:1.0)},
    yshift=5pt
    },
    xlabel style={
    anchor=west,
    at={(ticklabel* cs:1.0)},
    xshift=5pt
    },
    %xlabel=textit{t}text{ (s)},
    %yticklabel style={
    %fill=white,
    %yshift=10pt,
    %},
    %xticklabel style={
    %xshift=10pt,
    %fill=white
    %},
    ]
    draw [thick] (axis cs:5,0) edge[bend right=30] (axis cs:40,60);
    draw [thick] (axis cs:40,60) edge[bend left=10] (axis cs:60,120);
    %
    node [below] at (axis cs:-1,0) {$O$};
    end{axis}
    newline
    end{tikzpicture}
    end{center}
    end{document}









    share|improve this question

























      2












      2








      2


      1






      This could be a silly question, but how would you modify the codes below to show the origin $O$ without change the xmin and ymin values?



      The following is the resulting graph from the code.



      graph



      documentclass{article}
      usepackage[margin=0.5in]{geometry}
      usepackage{pgfplots}
      renewcommand{thesection}{arabic{section}}
      usepackage{mathtools}
      usepackage{cancel}
      usepackage{pgfplots}
      usepackage{amsmath}
      setlengthparskip{0pt}
      begin{center}}{end{center}}
      begin{document}
      textbf{Question 3} (10 marks)\[0.124cm]
      begin{center}
      begin{tikzpicture}[scale=0.8]
      begin{axis}[
      axis lines=middle,
      grid=major,
      minor tick num=4,
      grid=both,
      grid style={line width=.1pt, draw=gray!30},
      major grid style={line width=.2pt,draw=gray!50},
      xmin=0,
      xmax=61,
      ymin=0,
      ymax=122,
      height=14cm,
      width=15cm,
      xlabel=$textit{Time (minutes)}$,
      ylabel=$textit{Cumulative Frequency}$,
      xtick={0,5,10,15,20,25,30,35,40,45,50,55,60},
      %symbolic x coords={0,5,10,15,20,25,30,35,40,45,50,55,60},
      ytick={0,10,20,30,40,50,60,70,80,90,100,110,120},
      %ylabel=textit{distance}text{ (cm)},
      ylabel style={
      anchor=south,
      at={(ticklabel* cs:1.0)},
      yshift=5pt
      },
      xlabel style={
      anchor=west,
      at={(ticklabel* cs:1.0)},
      xshift=5pt
      },
      %xlabel=textit{t}text{ (s)},
      %yticklabel style={
      %fill=white,
      %yshift=10pt,
      %},
      %xticklabel style={
      %xshift=10pt,
      %fill=white
      %},
      ]
      draw [thick] (axis cs:5,0) edge[bend right=30] (axis cs:40,60);
      draw [thick] (axis cs:40,60) edge[bend left=10] (axis cs:60,120);
      %
      node [below] at (axis cs:-1,0) {$O$};
      end{axis}
      newline
      end{tikzpicture}
      end{center}
      end{document}









      share|improve this question














      This could be a silly question, but how would you modify the codes below to show the origin $O$ without change the xmin and ymin values?



      The following is the resulting graph from the code.



      graph



      documentclass{article}
      usepackage[margin=0.5in]{geometry}
      usepackage{pgfplots}
      renewcommand{thesection}{arabic{section}}
      usepackage{mathtools}
      usepackage{cancel}
      usepackage{pgfplots}
      usepackage{amsmath}
      setlengthparskip{0pt}
      begin{center}}{end{center}}
      begin{document}
      textbf{Question 3} (10 marks)\[0.124cm]
      begin{center}
      begin{tikzpicture}[scale=0.8]
      begin{axis}[
      axis lines=middle,
      grid=major,
      minor tick num=4,
      grid=both,
      grid style={line width=.1pt, draw=gray!30},
      major grid style={line width=.2pt,draw=gray!50},
      xmin=0,
      xmax=61,
      ymin=0,
      ymax=122,
      height=14cm,
      width=15cm,
      xlabel=$textit{Time (minutes)}$,
      ylabel=$textit{Cumulative Frequency}$,
      xtick={0,5,10,15,20,25,30,35,40,45,50,55,60},
      %symbolic x coords={0,5,10,15,20,25,30,35,40,45,50,55,60},
      ytick={0,10,20,30,40,50,60,70,80,90,100,110,120},
      %ylabel=textit{distance}text{ (cm)},
      ylabel style={
      anchor=south,
      at={(ticklabel* cs:1.0)},
      yshift=5pt
      },
      xlabel style={
      anchor=west,
      at={(ticklabel* cs:1.0)},
      xshift=5pt
      },
      %xlabel=textit{t}text{ (s)},
      %yticklabel style={
      %fill=white,
      %yshift=10pt,
      %},
      %xticklabel style={
      %xshift=10pt,
      %fill=white
      %},
      ]
      draw [thick] (axis cs:5,0) edge[bend right=30] (axis cs:40,60);
      draw [thick] (axis cs:40,60) edge[bend left=10] (axis cs:60,120);
      %
      node [below] at (axis cs:-1,0) {$O$};
      end{axis}
      newline
      end{tikzpicture}
      end{center}
      end{document}






      tikz-pgf






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 11 mins ago









      Will KimWill Kim

      711419




      711419






















          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%2f470640%2fhow-to-show-the-origin-o-in-a-tickpizcture-graph%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%2f470640%2fhow-to-show-the-origin-o-in-a-tickpizcture-graph%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

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)