Adding some simple labels Unicorn Meta Zoo #1: Why another podcast? ...

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

Suing a Police Officer Instead of the Police Department

Intern got a job offer for same salary than a long term team member

First instead of 1 when referencing

How do I check if a string is entirely made of the same substring?

Why do distances seem to matter in the Foundation world?

Multiple options vs single option UI

Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?

A strange hotel

Putting Ant-Man on house arrest

Drawing a german abacus as in the books of Adam Ries

Why did C use the -> operator instead of reusing the . operator?

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?

When do you need buffers/drivers on buses in a microprocessor design?

Tikz positioning above circle exact alignment

What is this word supposed to be?

Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?

Scheduling based problem

Why doesn't the standard consider a template constructor as a copy constructor?

Has a Nobel Peace laureate ever been accused of war crimes?

Did the Roman Empire have penal colonies?

Was Dennis Ritchie being too modest in this quote about C and Pascal?

Double-nominative constructions and “von”



Adding some simple labels



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara












2















Since I am a beginner with Tikz, I wanted to ask what is the best way to include labels to my lines, as in the picture:
enter image description here



This is the code:



usepackage{tikz}
usetikzlibrary{calc}
usetikzlibrary{positioning,arrows.meta}

begin{document}
begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
extended line/.style={shorten >=-#1,shorten <=-#1},
extended line/.default=1cm]

draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

coordinate (A) at (0,0);
coordinate (B) at (3,4);

draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M);
draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

node [dot=$x^{*}$] at (M) {};
fill [red] (M) circle [radius=2pt] ;


end{tikzpicture}

end{document}








share


















  • 1





    You can use pos option, or near end, very near end, etc.

    – JouleV
    1 min ago











  • Missing documentclass[...]{...} into your MWE.

    – Sebastiano
    37 secs ago
















2















Since I am a beginner with Tikz, I wanted to ask what is the best way to include labels to my lines, as in the picture:
enter image description here



This is the code:



usepackage{tikz}
usetikzlibrary{calc}
usetikzlibrary{positioning,arrows.meta}

begin{document}
begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
extended line/.style={shorten >=-#1,shorten <=-#1},
extended line/.default=1cm]

draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

coordinate (A) at (0,0);
coordinate (B) at (3,4);

draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M);
draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

node [dot=$x^{*}$] at (M) {};
fill [red] (M) circle [radius=2pt] ;


end{tikzpicture}

end{document}








share


















  • 1





    You can use pos option, or near end, very near end, etc.

    – JouleV
    1 min ago











  • Missing documentclass[...]{...} into your MWE.

    – Sebastiano
    37 secs ago














2












2








2








Since I am a beginner with Tikz, I wanted to ask what is the best way to include labels to my lines, as in the picture:
enter image description here



This is the code:



usepackage{tikz}
usetikzlibrary{calc}
usetikzlibrary{positioning,arrows.meta}

begin{document}
begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
extended line/.style={shorten >=-#1,shorten <=-#1},
extended line/.default=1cm]

draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

coordinate (A) at (0,0);
coordinate (B) at (3,4);

draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M);
draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

node [dot=$x^{*}$] at (M) {};
fill [red] (M) circle [radius=2pt] ;


end{tikzpicture}

end{document}








share














Since I am a beginner with Tikz, I wanted to ask what is the best way to include labels to my lines, as in the picture:
enter image description here



This is the code:



usepackage{tikz}
usetikzlibrary{calc}
usetikzlibrary{positioning,arrows.meta}

begin{document}
begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
extended line/.style={shorten >=-#1,shorten <=-#1},
extended line/.default=1cm]

draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

coordinate (A) at (0,0);
coordinate (B) at (3,4);

draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M);
draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

node [dot=$x^{*}$] at (M) {};
fill [red] (M) circle [radius=2pt] ;


end{tikzpicture}

end{document}






tikz-pgf draw tikz-calc





share












share










share



share










asked 3 mins ago









NenneNenne

131




131








  • 1





    You can use pos option, or near end, very near end, etc.

    – JouleV
    1 min ago











  • Missing documentclass[...]{...} into your MWE.

    – Sebastiano
    37 secs ago














  • 1





    You can use pos option, or near end, very near end, etc.

    – JouleV
    1 min ago











  • Missing documentclass[...]{...} into your MWE.

    – Sebastiano
    37 secs ago








1




1





You can use pos option, or near end, very near end, etc.

– JouleV
1 min ago





You can use pos option, or near end, very near end, etc.

– JouleV
1 min ago













Missing documentclass[...]{...} into your MWE.

– Sebastiano
37 secs ago





Missing documentclass[...]{...} into your MWE.

– Sebastiano
37 secs ago










1 Answer
1






active

oldest

votes


















0














Just add something like node[pos=0.9,right]{Payoff space $X$} to the path.



documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{calc}
usetikzlibrary{positioning,arrows.meta}

begin{document}
begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
extended line/.style={shorten >=-#1,shorten <=-#1},
extended line/.default=1cm]

draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

coordinate (A) at (0,0);
coordinate (B) at (3,4);

draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M)
node[pos=0.9,right]{Payoff space $X$};
draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

node [dot=$x^{*}$] at (M) {};
fill [red] (M) circle [radius=2pt] ;


end{tikzpicture}

end{document}




share
























    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%2f487589%2fadding-some-simple-labels%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














    Just add something like node[pos=0.9,right]{Payoff space $X$} to the path.



    documentclass[tikz,border=3.14mm]{standalone}
    usetikzlibrary{calc}
    usetikzlibrary{positioning,arrows.meta}

    begin{document}
    begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
    extended line/.style={shorten >=-#1,shorten <=-#1},
    extended line/.default=1cm]

    draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
    draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

    coordinate (A) at (0,0);
    coordinate (B) at (3,4);

    draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M)
    node[pos=0.9,right]{Payoff space $X$};
    draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

    node [dot=$x^{*}$] at (M) {};
    fill [red] (M) circle [radius=2pt] ;


    end{tikzpicture}

    end{document}




    share




























      0














      Just add something like node[pos=0.9,right]{Payoff space $X$} to the path.



      documentclass[tikz,border=3.14mm]{standalone}
      usetikzlibrary{calc}
      usetikzlibrary{positioning,arrows.meta}

      begin{document}
      begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
      extended line/.style={shorten >=-#1,shorten <=-#1},
      extended line/.default=1cm]

      draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
      draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

      coordinate (A) at (0,0);
      coordinate (B) at (3,4);

      draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M)
      node[pos=0.9,right]{Payoff space $X$};
      draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

      node [dot=$x^{*}$] at (M) {};
      fill [red] (M) circle [radius=2pt] ;


      end{tikzpicture}

      end{document}




      share


























        0












        0








        0







        Just add something like node[pos=0.9,right]{Payoff space $X$} to the path.



        documentclass[tikz,border=3.14mm]{standalone}
        usetikzlibrary{calc}
        usetikzlibrary{positioning,arrows.meta}

        begin{document}
        begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
        extended line/.style={shorten >=-#1,shorten <=-#1},
        extended line/.default=1cm]

        draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
        draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

        coordinate (A) at (0,0);
        coordinate (B) at (3,4);

        draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M)
        node[pos=0.9,right]{Payoff space $X$};
        draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

        node [dot=$x^{*}$] at (M) {};
        fill [red] (M) circle [radius=2pt] ;


        end{tikzpicture}

        end{document}




        share













        Just add something like node[pos=0.9,right]{Payoff space $X$} to the path.



        documentclass[tikz,border=3.14mm]{standalone}
        usetikzlibrary{calc}
        usetikzlibrary{positioning,arrows.meta}

        begin{document}
        begin{tikzpicture}[dot/.style={circle,inner sep=1pt,fill,label={#1},name=#1},
        extended line/.style={shorten >=-#1,shorten <=-#1},
        extended line/.default=1cm]

        draw[thick,->] (0,0) -- (4.5,0) node[anchor=north west] {small state 1};
        draw[thick,->] (0,0) -- (0,4.5) node[anchor=south east] {small state 2};

        coordinate (A) at (0,0);
        coordinate (B) at (3,4);

        draw [extended line=0.5cm, <->] (A) -- (B) coordinate[midway] (M)
        node[pos=0.9,right]{Payoff space $X$};
        draw [extended line=2.5cm, <->] ($(M)!0.5cm!270:(A)$) -- ($(M)!0.5cm!90:(A)$);

        node [dot=$x^{*}$] at (M) {};
        fill [red] (M) circle [radius=2pt] ;


        end{tikzpicture}

        end{document}





        share











        share


        share










        answered 12 secs ago









        marmotmarmot

        121k6158296




        121k6158296






























            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%2f487589%2fadding-some-simple-labels%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

            El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

            Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...

            Castillo d'Acher Características Menú de navegación