Tikz diagrams and node placementsTikZ: draw line thickness less than 0.1 mmRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeTikZ/ERD: node (=Entity) label on the insideTikZ: Drawing an arc from an intersection to an intersectionHow to fill a line one-sided using TikZ?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturestikz - gradient along a bendy path

What is "focus distance lower/upper" and how is it different from depth of field?

Why did it take so long to abandon sail after steamships were demonstrated?

Employee lack of ownership

How do you talk to someone whose loved one is dying?

Problem with FindRoot

How do I change two letters closest to a string and one letter immediately after a string using Notepad++?

How to pronounce "I ♥ Huckabees"?

New passport but visa is in old (lost) passport

Print a physical multiplication table

Violin - Can double stops be played when the strings are not next to each other?

Fastest way to pop N items from a large dict

How to write cleanly even if my character uses expletive language?

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

Aluminum electrolytic or ceramic capacitors for linear regulator input and output?

Why does a Star of David appear at a rally with Francisco Franco?

Official degrees of earth’s rotation per day

What is the significance behind "40 days" that often appears in the Bible?

Describing a chess game in a novel

How well should I expect Adam to work?

"of which" is correct here?

How to make healing in an exploration game interesting

What's the meaning of a knight fighting a snail in medieval book illustrations?

Can I use USB data pins as power source

ERC721: How to get the owned tokens of an address



Tikz diagrams and node placements


TikZ: draw line thickness less than 0.1 mmRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeTikZ/ERD: node (=Entity) label on the insideTikZ: Drawing an arc from an intersection to an intersectionHow to fill a line one-sided using TikZ?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturestikz - gradient along a bendy path













3















I'm designing a diagram for a 1-D potential well. I'm struggling to correctly place my a label below the right hand line. I resorted to drawing an invisible line and positioning the node at the end. Further to this, how do I add grey shading to the area outside of the red lines?



Cheers



documentclass[tikz,border=3.14mm]standalone 
begindocument
begintikzpicture
draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue]();
draw[thick, red,->, >=stealth] (2.5,0) -- (2.5,3);
% node[draw] at (2.5,-0.2) node[right, black](a);
draw[line width=0pt] (0,0) -- (2.5,0) node[below, black](a);
endtikzpicture
enddocument









share|improve this question







New contributor




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
























    3















    I'm designing a diagram for a 1-D potential well. I'm struggling to correctly place my a label below the right hand line. I resorted to drawing an invisible line and positioning the node at the end. Further to this, how do I add grey shading to the area outside of the red lines?



    Cheers



    documentclass[tikz,border=3.14mm]standalone 
    begindocument
    begintikzpicture
    draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
    draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
    draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue]();
    draw[thick, red,->, >=stealth] (2.5,0) -- (2.5,3);
    % node[draw] at (2.5,-0.2) node[right, black](a);
    draw[line width=0pt] (0,0) -- (2.5,0) node[below, black](a);
    endtikzpicture
    enddocument









    share|improve this question







    New contributor




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






















      3












      3








      3


      0






      I'm designing a diagram for a 1-D potential well. I'm struggling to correctly place my a label below the right hand line. I resorted to drawing an invisible line and positioning the node at the end. Further to this, how do I add grey shading to the area outside of the red lines?



      Cheers



      documentclass[tikz,border=3.14mm]standalone 
      begindocument
      begintikzpicture
      draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
      draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
      draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue]();
      draw[thick, red,->, >=stealth] (2.5,0) -- (2.5,3);
      % node[draw] at (2.5,-0.2) node[right, black](a);
      draw[line width=0pt] (0,0) -- (2.5,0) node[below, black](a);
      endtikzpicture
      enddocument









      share|improve this question







      New contributor




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












      I'm designing a diagram for a 1-D potential well. I'm struggling to correctly place my a label below the right hand line. I resorted to drawing an invisible line and positioning the node at the end. Further to this, how do I add grey shading to the area outside of the red lines?



      Cheers



      documentclass[tikz,border=3.14mm]standalone 
      begindocument
      begintikzpicture
      draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
      draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
      draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue]();
      draw[thick, red,->, >=stealth] (2.5,0) -- (2.5,3);
      % node[draw] at (2.5,-0.2) node[right, black](a);
      draw[line width=0pt] (0,0) -- (2.5,0) node[below, black](a);
      endtikzpicture
      enddocument






      tikz-pgf nodes shading






      share|improve this question







      New contributor




      H98 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




      H98 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






      New contributor




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









      asked 11 hours ago









      H98H98

      302




      302




      New contributor




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





      New contributor





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






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




















          1 Answer
          1






          active

          oldest

          votes


















          4














          Like this



          documentclass[tikz,border=3.14mm]standalone 
          begindocument
          begintikzpicture
          fill[gray!50] (-.5,-.5) rectangle (pi,4);
          fill[white] (0,0) rectangle (2.5,3);
          draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
          draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
          draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue](x);
          draw[thick, red,->, >=stealth] (2.5,0) node[below,black] $a$ -- (2.5,3);
          endtikzpicture
          enddocument


          enter image description here



          Note that if you want to draw an invisible line, you should not use line width=0pt, because it is still greater that zero. Use path instead (in fact draw and path[draw] are the same):



          path (0,0) -- (2.5,0) node[below, black](a);





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



            );






            H98 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%2f479784%2ftikz-diagrams-and-node-placements%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









            4














            Like this



            documentclass[tikz,border=3.14mm]standalone 
            begindocument
            begintikzpicture
            fill[gray!50] (-.5,-.5) rectangle (pi,4);
            fill[white] (0,0) rectangle (2.5,3);
            draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
            draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
            draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue](x);
            draw[thick, red,->, >=stealth] (2.5,0) node[below,black] $a$ -- (2.5,3);
            endtikzpicture
            enddocument


            enter image description here



            Note that if you want to draw an invisible line, you should not use line width=0pt, because it is still greater that zero. Use path instead (in fact draw and path[draw] are the same):



            path (0,0) -- (2.5,0) node[below, black](a);





            share|improve this answer





























              4














              Like this



              documentclass[tikz,border=3.14mm]standalone 
              begindocument
              begintikzpicture
              fill[gray!50] (-.5,-.5) rectangle (pi,4);
              fill[white] (0,0) rectangle (2.5,3);
              draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
              draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
              draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue](x);
              draw[thick, red,->, >=stealth] (2.5,0) node[below,black] $a$ -- (2.5,3);
              endtikzpicture
              enddocument


              enter image description here



              Note that if you want to draw an invisible line, you should not use line width=0pt, because it is still greater that zero. Use path instead (in fact draw and path[draw] are the same):



              path (0,0) -- (2.5,0) node[below, black](a);





              share|improve this answer



























                4












                4








                4







                Like this



                documentclass[tikz,border=3.14mm]standalone 
                begindocument
                begintikzpicture
                fill[gray!50] (-.5,-.5) rectangle (pi,4);
                fill[white] (0,0) rectangle (2.5,3);
                draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
                draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
                draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue](x);
                draw[thick, red,->, >=stealth] (2.5,0) node[below,black] $a$ -- (2.5,3);
                endtikzpicture
                enddocument


                enter image description here



                Note that if you want to draw an invisible line, you should not use line width=0pt, because it is still greater that zero. Use path instead (in fact draw and path[draw] are the same):



                path (0,0) -- (2.5,0) node[below, black](a);





                share|improve this answer















                Like this



                documentclass[tikz,border=3.14mm]standalone 
                begindocument
                begintikzpicture
                fill[gray!50] (-.5,-.5) rectangle (pi,4);
                fill[white] (0,0) rectangle (2.5,3);
                draw[-stealth] (-0.5,0) -- (pi,0) node[right](x);
                draw[-stealth] (0,-0.5) -- (0,4) node[above](V(x));
                draw[thick, red, ->, >=stealth] (0,0) -- (0,3) node[left, blue](x);
                draw[thick, red,->, >=stealth] (2.5,0) node[below,black] $a$ -- (2.5,3);
                endtikzpicture
                enddocument


                enter image description here



                Note that if you want to draw an invisible line, you should not use line width=0pt, because it is still greater that zero. Use path instead (in fact draw and path[draw] are the same):



                path (0,0) -- (2.5,0) node[below, black](a);






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 10 hours ago

























                answered 11 hours ago









                JouleVJouleV

                5,97821549




                5,97821549




















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









                    draft saved

                    draft discarded


















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












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











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














                    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%2f479784%2ftikz-diagrams-and-node-placements%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

                    Bett Inhaltsverzeichnis Geschichte | Bettformen | Bettgrößen | Andere Bezeichnungen | Bettenmangel | Betten in der bildenden Kunst | Schlafmedizinische Gesichtspunkte | Siehe auch | Literatur | Weblinks | Einzelnachweise | NavigationsmenüBett, Bettstatt, BettstelleCommons: BettBabybetten: Anwendung, Ausstattungsmerkmale und VergleichskriterienWasserbetten. Vorurteile im TestHapfnNursch10.1007/s11818-012-0584-74006250-8AKS4329276-8

                    Luksemburg Sisukord Nimi | Asend | Loodus | Riigikord | Haldusjaotus | Rahvastik | Riigikaitse | Majandus | Taristu | Ajalugu | Eesti ja Luksemburgi suhted | Haridus | Kultuur | Vaata ka | Viited | Välislingid | Navigeerimismenüü50° N, 6° EÜlevaade Luksemburgi kaitsealadest.Luksemburgi rahvaarv. Statistikaamet.World Bank'i andmebaasÜlevaade Luksemburgi loodusest.Ülevaade Luksemburgi metsadest.Guy Colling. "Red List of the Vascular Plants of Luxembourg." Travaux scientifiques du Musée national d’histoire naturelle Luxembourg. 2005.Luxembourg’s biodiversity at risk.Maailma kahepaiksete andmebaas.Denis Lepage. "Luxembourg." Avibase.Ülevaade temperatuuridest. Luksemburgi meteoroloogiateenistus.Ülevaade Luksemburgist. Euroopa Liidu esinduse koduleht.Système politique. TerritoireÜlevaade Luksemburgi rahvastikust. Luksemburgi statistikaamet.Luksemburgi rahvastik. Luksemburgi statistikaamet.The World FactbookMonique Borsenberger, Paul Dickes. "Religions au Luxembourg. Quelle évolution entre 1999-2008". Luksemburgi statistikaamet. 2011.Luksemburgi peapiiskopkond. Catholic-Hierarchy.Luksemburgi armee koduleht.Luksemburgi armee relvastus.Eesti Välisministeerium.Luksemburgi rahvastik. Luksemburgi statistikaamet.Luksemburgi Eesti Seltsi koduleht.Helen Eelrand. "Raadio, mis muutis maailma." Eesti Päevaleht. 13. märts 2004.Ülevaade Luksemburgi haridussüsteemist.Ülevaade Luksemburgi keskkoolidest.Luksemburgr

                    Valle di Casies Indice Geografia fisica | Origini del nome | Storia | Società | Amministrazione | Sport | Note | Bibliografia | Voci correlate | Altri progetti | Collegamenti esterni | Menu di navigazione46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)Sito istituzionaleAstat Censimento della popolazione 2011 - Determinazione della consistenza dei tre gruppi linguistici della Provincia Autonoma di Bolzano-Alto Adige - giugno 2012Numeri e fattiValle di CasiesDato IstatTabella dei gradi/giorno dei Comuni italiani raggruppati per Regione e Provincia26 agosto 1993, n. 412Heraldry of the World: GsiesStatistiche I.StatValCasies.comWikimedia CommonsWikimedia CommonsValle di CasiesSito ufficialeValle di CasiesMM14870458910042978-6