I want a figure to be positioned above a tikzpicture











up vote
3
down vote

favorite












I have a picture which needs to be placed above another figure that I drew using tikzpicture. The pictures are being positioned side by side.



documentclass{standalone} 

usepackage{tikz}

begin{document}
includegraphics[scale=1]{m4.pdf}
begin{tikzpicture}

node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};

path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

end{tikzpicture}
end{document}


The output is:
enter image description here



I want it to be like:



enter image description here










share|improve this question









New contributor




Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to TeX.SE. You only need to put the picture in a node, node at (5,3) {includegraphics[scale=1]{m4.pdf}};. However, I do not have your picture, so I do not know if (5,3) works, you may need to use different coordinates.
    – marmot
    10 hours ago










  • Thank you, it worked. @marmot
    – Mouli Modak
    10 hours ago












  • @CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
    – marmot
    9 hours ago










  • @CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
    – marmot
    9 hours ago










  • @marmot Close vote retracted since there's an answer
    – CarLaTeX
    9 hours ago















up vote
3
down vote

favorite












I have a picture which needs to be placed above another figure that I drew using tikzpicture. The pictures are being positioned side by side.



documentclass{standalone} 

usepackage{tikz}

begin{document}
includegraphics[scale=1]{m4.pdf}
begin{tikzpicture}

node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};

path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

end{tikzpicture}
end{document}


The output is:
enter image description here



I want it to be like:



enter image description here










share|improve this question









New contributor




Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Welcome to TeX.SE. You only need to put the picture in a node, node at (5,3) {includegraphics[scale=1]{m4.pdf}};. However, I do not have your picture, so I do not know if (5,3) works, you may need to use different coordinates.
    – marmot
    10 hours ago










  • Thank you, it worked. @marmot
    – Mouli Modak
    10 hours ago












  • @CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
    – marmot
    9 hours ago










  • @CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
    – marmot
    9 hours ago










  • @marmot Close vote retracted since there's an answer
    – CarLaTeX
    9 hours ago













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I have a picture which needs to be placed above another figure that I drew using tikzpicture. The pictures are being positioned side by side.



documentclass{standalone} 

usepackage{tikz}

begin{document}
includegraphics[scale=1]{m4.pdf}
begin{tikzpicture}

node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};

path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

end{tikzpicture}
end{document}


The output is:
enter image description here



I want it to be like:



enter image description here










share|improve this question









New contributor




Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a picture which needs to be placed above another figure that I drew using tikzpicture. The pictures are being positioned side by side.



documentclass{standalone} 

usepackage{tikz}

begin{document}
includegraphics[scale=1]{m4.pdf}
begin{tikzpicture}

node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};

path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

end{tikzpicture}
end{document}


The output is:
enter image description here



I want it to be like:



enter image description here







tikz-pgf standalone






share|improve this question









New contributor




Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 9 hours ago









AndréC

5,6471937




5,6471937






New contributor




Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 10 hours ago









Mouli Modak

162




162




New contributor




Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Mouli Modak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Welcome to TeX.SE. You only need to put the picture in a node, node at (5,3) {includegraphics[scale=1]{m4.pdf}};. However, I do not have your picture, so I do not know if (5,3) works, you may need to use different coordinates.
    – marmot
    10 hours ago










  • Thank you, it worked. @marmot
    – Mouli Modak
    10 hours ago












  • @CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
    – marmot
    9 hours ago










  • @CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
    – marmot
    9 hours ago










  • @marmot Close vote retracted since there's an answer
    – CarLaTeX
    9 hours ago


















  • Welcome to TeX.SE. You only need to put the picture in a node, node at (5,3) {includegraphics[scale=1]{m4.pdf}};. However, I do not have your picture, so I do not know if (5,3) works, you may need to use different coordinates.
    – marmot
    10 hours ago










  • Thank you, it worked. @marmot
    – Mouli Modak
    10 hours ago












  • @CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
    – marmot
    9 hours ago










  • @CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
    – marmot
    9 hours ago










  • @marmot Close vote retracted since there's an answer
    – CarLaTeX
    9 hours ago
















Welcome to TeX.SE. You only need to put the picture in a node, node at (5,3) {includegraphics[scale=1]{m4.pdf}};. However, I do not have your picture, so I do not know if (5,3) works, you may need to use different coordinates.
– marmot
10 hours ago




Welcome to TeX.SE. You only need to put the picture in a node, node at (5,3) {includegraphics[scale=1]{m4.pdf}};. However, I do not have your picture, so I do not know if (5,3) works, you may need to use different coordinates.
– marmot
10 hours ago












Thank you, it worked. @marmot
– Mouli Modak
10 hours ago






Thank you, it worked. @marmot
– Mouli Modak
10 hours ago














@CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
– marmot
9 hours ago




@CarLaTeX I dunno, how would anyone benefit from this? It is, at least by some standards, a duplicate of this question. And this answer will always give you an idea which coordinates are to be used. (I would probably just draw these graphs with TikZ.)
– marmot
9 hours ago












@CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
– marmot
9 hours ago




@CarLaTeX Morally I agree but thanks to the tikz-pgf gold badge I can no longer just vote to close a question as a duplicate.
– marmot
9 hours ago












@marmot Close vote retracted since there's an answer
– CarLaTeX
9 hours ago




@marmot Close vote retracted since there's an answer
– CarLaTeX
9 hours ago










1 Answer
1






active

oldest

votes

















up vote
2
down vote













Just load the optional preview package of the standalone class, and I quote (page 9):




If enabled this option loads the preview package with the tightpage
option and wraps the content into a preview environment. This crops
the content to its natural size plus a specified border.




exemple



documentclass[preview]{standalone} 

usepackage{tikz}
usepackage{mwe}
begin{document}
includegraphics[scale=1]{example-image-a}
begin{tikzpicture}

node(A0) at (0,0) {p = 0};
node(A1) at (10,0) {p = 1};

path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

end{tikzpicture}
end{document}





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
    });


    }
    });






    Mouli Modak is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460236%2fi-want-a-figure-to-be-positioned-above-a-tikzpicture%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
    2
    down vote













    Just load the optional preview package of the standalone class, and I quote (page 9):




    If enabled this option loads the preview package with the tightpage
    option and wraps the content into a preview environment. This crops
    the content to its natural size plus a specified border.




    exemple



    documentclass[preview]{standalone} 

    usepackage{tikz}
    usepackage{mwe}
    begin{document}
    includegraphics[scale=1]{example-image-a}
    begin{tikzpicture}

    node(A0) at (0,0) {p = 0};
    node(A1) at (10,0) {p = 1};

    path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

    end{tikzpicture}
    end{document}





    share|improve this answer

























      up vote
      2
      down vote













      Just load the optional preview package of the standalone class, and I quote (page 9):




      If enabled this option loads the preview package with the tightpage
      option and wraps the content into a preview environment. This crops
      the content to its natural size plus a specified border.




      exemple



      documentclass[preview]{standalone} 

      usepackage{tikz}
      usepackage{mwe}
      begin{document}
      includegraphics[scale=1]{example-image-a}
      begin{tikzpicture}

      node(A0) at (0,0) {p = 0};
      node(A1) at (10,0) {p = 1};

      path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

      end{tikzpicture}
      end{document}





      share|improve this answer























        up vote
        2
        down vote










        up vote
        2
        down vote









        Just load the optional preview package of the standalone class, and I quote (page 9):




        If enabled this option loads the preview package with the tightpage
        option and wraps the content into a preview environment. This crops
        the content to its natural size plus a specified border.




        exemple



        documentclass[preview]{standalone} 

        usepackage{tikz}
        usepackage{mwe}
        begin{document}
        includegraphics[scale=1]{example-image-a}
        begin{tikzpicture}

        node(A0) at (0,0) {p = 0};
        node(A1) at (10,0) {p = 1};

        path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

        end{tikzpicture}
        end{document}





        share|improve this answer












        Just load the optional preview package of the standalone class, and I quote (page 9):




        If enabled this option loads the preview package with the tightpage
        option and wraps the content into a preview environment. This crops
        the content to its natural size plus a specified border.




        exemple



        documentclass[preview]{standalone} 

        usepackage{tikz}
        usepackage{mwe}
        begin{document}
        includegraphics[scale=1]{example-image-a}
        begin{tikzpicture}

        node(A0) at (0,0) {p = 0};
        node(A1) at (10,0) {p = 1};

        path[->] (A0) edge node [below] {Increasing Ramdomness} (A1);

        end{tikzpicture}
        end{document}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 9 hours ago









        AndréC

        5,6471937




        5,6471937






















            Mouli Modak is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            Mouli Modak is a new contributor. Be nice, and check out our Code of Conduct.













            Mouli Modak is a new contributor. Be nice, and check out our Code of Conduct.












            Mouli Modak is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460236%2fi-want-a-figure-to-be-positioned-above-a-tikzpicture%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

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt