extending lines in 3d graphHow to draw inside a TikZ node, using node style?Make tikzpicture white on blackUse of overlay command in a graphTikZ: Drawing an arc from an intersection to an intersectionRelative transparency in TikZ?Line up nested tikz enviroments or how to get rid of themtikz and pgfdeclareshape why the text is not at the center anchor?How to draw a vector in a 3D spaceAutomatically find which nodes are closest, to aid drawing lines within a TikZ matrixTikz image within a defined box (& the textpos package)

Ways you can end up paying interest on a credit card if you pay the full amount back in due time

D Scale Question

Can a human variant take proficiency in initiative?

Given a specific computer system, is it possible to estimate the actual precise run time of a piece of Assembly code

Why do we need explainable AI?

How can I modify a line which contains 2nd occurence of a string?

Is it good practice to speed up and slow down where not written in a song?

Are there consequences for not filing a DMCA (any country)

Inserting command output into multiline string

Can a system of three stars exist?

Turn off Google Chrome's Notification for "Flash Player will no longer be supported after December 2020."

Replace a motion-sensor/timer with simple single pole switch

Why do fuses burn at a specific current?

Is torque as fundamental a concept as force?

How to use a tikzpicture as a node shape

How would a disabled person earn their living in a medieval-type town?

garage light with two hots and one neutral

Displaying Time in HH:MM Format

Visiting girlfriend in the USA

Is Borg adaptation only temporary?

In Toy Story, are toys the only inanimate objects that become alive? And if so, why?

Punishment in pacifist society

Received email from ISP saying one of my devices has malware

Datasets of Large Molecules



extending lines in 3d graph


How to draw inside a TikZ node, using node style?Make tikzpicture white on blackUse of overlay command in a graphTikZ: Drawing an arc from an intersection to an intersectionRelative transparency in TikZ?Line up nested tikz enviroments or how to get rid of themtikz and pgfdeclareshape why the text is not at the center anchor?How to draw a vector in a 3D spaceAutomatically find which nodes are closest, to aid drawing lines within a TikZ matrixTikz image within a defined box (& the textpos package)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















How can I extend the two lines I have through this 3d graph? Kind of like this picture, where the red lines would be dotted lines showing the line going through the two points. I thought I could simply multiply both values by a scalar vector, but it didn't work.
enter image description here



documentclassarticle
usepackage[margin=1in]geometry
usepackagetikz, tikz-3dplot
usepackageamsmath
begindocument
tdplotsetmaincoords75135
begintikzpicture [scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
vector/.style=-stealth,black,very thick,
vector guide/.style=dashed,black,thick]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);

%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
endtikzpicture
enddocument









share|improve this question
























  • The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

    – Schrödinger's cat
    8 hours ago

















2















How can I extend the two lines I have through this 3d graph? Kind of like this picture, where the red lines would be dotted lines showing the line going through the two points. I thought I could simply multiply both values by a scalar vector, but it didn't work.
enter image description here



documentclassarticle
usepackage[margin=1in]geometry
usepackagetikz, tikz-3dplot
usepackageamsmath
begindocument
tdplotsetmaincoords75135
begintikzpicture [scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
vector/.style=-stealth,black,very thick,
vector guide/.style=dashed,black,thick]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);

%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
endtikzpicture
enddocument









share|improve this question
























  • The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

    – Schrödinger's cat
    8 hours ago













2












2








2


1






How can I extend the two lines I have through this 3d graph? Kind of like this picture, where the red lines would be dotted lines showing the line going through the two points. I thought I could simply multiply both values by a scalar vector, but it didn't work.
enter image description here



documentclassarticle
usepackage[margin=1in]geometry
usepackagetikz, tikz-3dplot
usepackageamsmath
begindocument
tdplotsetmaincoords75135
begintikzpicture [scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
vector/.style=-stealth,black,very thick,
vector guide/.style=dashed,black,thick]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);

%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
endtikzpicture
enddocument









share|improve this question














How can I extend the two lines I have through this 3d graph? Kind of like this picture, where the red lines would be dotted lines showing the line going through the two points. I thought I could simply multiply both values by a scalar vector, but it didn't work.
enter image description here



documentclassarticle
usepackage[margin=1in]geometry
usepackagetikz, tikz-3dplot
usepackageamsmath
begindocument
tdplotsetmaincoords75135
begintikzpicture [scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
vector/.style=-stealth,black,very thick,
vector guide/.style=dashed,black,thick]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);

%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
endtikzpicture
enddocument






tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 9 hours ago









Evan KimEvan Kim

2245 bronze badges




2245 bronze badges















  • The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

    – Schrödinger's cat
    8 hours ago

















  • The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

    – Schrödinger's cat
    8 hours ago
















The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

– Schrödinger's cat
8 hours ago





The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

– Schrödinger's cat
8 hours ago










1 Answer
1






active

oldest

votes


















4















You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


draws from c to c plus 0.5 times c-d. This and further examples are contained in



documentclassarticle
usepackage[margin=1in]geometry
usepackagetikz, tikz-3dplot
usepackageamsmath
begindocument
tdplotsetmaincoords75135
begintikzpicture[scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
vector/.style=-stealth,black,very thick,
vector guide/.style=dashed,black,thick,
vector extension/.style=densely dashed,red,-stealth]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);
draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
endtikzpicture
enddocument


enter image description here






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



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f506605%2fextending-lines-in-3d-graph%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















    You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



    draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


    draws from c to c plus 0.5 times c-d. This and further examples are contained in



    documentclassarticle
    usepackage[margin=1in]geometry
    usepackagetikz, tikz-3dplot
    usepackageamsmath
    begindocument
    tdplotsetmaincoords75135
    begintikzpicture[scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
    vector/.style=-stealth,black,very thick,
    vector guide/.style=dashed,black,thick,
    vector extension/.style=densely dashed,red,-stealth]

    %standard tikz coordinate definition using x, y, z coords
    coordinate (origin) at (0,0,0);
    coordinate (a) at (-3,0,1);
    coordinate (b) at (0,1,2);
    coordinate (c) at (2,-1,1);
    coordinate (d) at (1,2,0);
    draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
    draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
    draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
    draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
    %draw axes
    draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
    draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
    draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

    % Draw two points
    draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
    draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
    draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
    draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

    %draw guide lines to components
    draw[vector guide] (origin) -- (a);
    draw[vector guide] (origin) -- (b);
    draw[vector guide] (origin) -- (c);
    draw[vector guide] (origin) -- (d);

    % Draw parametric lines
    draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
    draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer





























      4















      You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



      draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


      draws from c to c plus 0.5 times c-d. This and further examples are contained in



      documentclassarticle
      usepackage[margin=1in]geometry
      usepackagetikz, tikz-3dplot
      usepackageamsmath
      begindocument
      tdplotsetmaincoords75135
      begintikzpicture[scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
      vector/.style=-stealth,black,very thick,
      vector guide/.style=dashed,black,thick,
      vector extension/.style=densely dashed,red,-stealth]

      %standard tikz coordinate definition using x, y, z coords
      coordinate (origin) at (0,0,0);
      coordinate (a) at (-3,0,1);
      coordinate (b) at (0,1,2);
      coordinate (c) at (2,-1,1);
      coordinate (d) at (1,2,0);
      draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
      draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
      draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
      draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
      %draw axes
      draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
      draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
      draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

      % Draw two points
      draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
      draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
      draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
      draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

      %draw guide lines to components
      draw[vector guide] (origin) -- (a);
      draw[vector guide] (origin) -- (b);
      draw[vector guide] (origin) -- (c);
      draw[vector guide] (origin) -- (d);

      % Draw parametric lines
      draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
      draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer



























        4














        4










        4









        You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



        draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


        draws from c to c plus 0.5 times c-d. This and further examples are contained in



        documentclassarticle
        usepackage[margin=1in]geometry
        usepackagetikz, tikz-3dplot
        usepackageamsmath
        begindocument
        tdplotsetmaincoords75135
        begintikzpicture[scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
        vector/.style=-stealth,black,very thick,
        vector guide/.style=dashed,black,thick,
        vector extension/.style=densely dashed,red,-stealth]

        %standard tikz coordinate definition using x, y, z coords
        coordinate (origin) at (0,0,0);
        coordinate (a) at (-3,0,1);
        coordinate (b) at (0,1,2);
        coordinate (c) at (2,-1,1);
        coordinate (d) at (1,2,0);
        draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
        draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
        draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
        draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
        %draw axes
        draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
        draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
        draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

        % Draw two points
        draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
        draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
        draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
        draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

        %draw guide lines to components
        draw[vector guide] (origin) -- (a);
        draw[vector guide] (origin) -- (b);
        draw[vector guide] (origin) -- (c);
        draw[vector guide] (origin) -- (d);

        % Draw parametric lines
        draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
        draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer













        You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



        draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


        draws from c to c plus 0.5 times c-d. This and further examples are contained in



        documentclassarticle
        usepackage[margin=1in]geometry
        usepackagetikz, tikz-3dplot
        usepackageamsmath
        begindocument
        tdplotsetmaincoords75135
        begintikzpicture[scale=1.1, tdplot_main_coords, axis/.style=->,black,thick,
        vector/.style=-stealth,black,very thick,
        vector guide/.style=dashed,black,thick,
        vector extension/.style=densely dashed,red,-stealth]

        %standard tikz coordinate definition using x, y, z coords
        coordinate (origin) at (0,0,0);
        coordinate (a) at (-3,0,1);
        coordinate (b) at (0,1,2);
        coordinate (c) at (2,-1,1);
        coordinate (d) at (1,2,0);
        draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
        draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
        draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
        draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
        %draw axes
        draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]$x$;
        draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]$y$;
        draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]$z$;

        % Draw two points
        draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]$a=(-3,0,1)$;
        draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]$b=(0,1,2)$;
        draw[fill=black] (c) circle[radius=2pt] node[anchor=south]$c=(2,-1,1)$;
        draw[fill=black] (d) circle[radius=2pt] node[anchor=north]$d=(1,2,0)$;

        %draw guide lines to components
        draw[vector guide] (origin) -- (a);
        draw[vector guide] (origin) -- (b);
        draw[vector guide] (origin) -- (c);
        draw[vector guide] (origin) -- (d);

        % Draw parametric lines
        draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]$ta + b$;
        draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]$tc + d$;
        endtikzpicture
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 7 hours ago









        Schrödinger's catSchrödinger's cat

        3,9316 silver badges16 bronze badges




        3,9316 silver badges16 bronze badges






























            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%2f506605%2fextending-lines-in-3d-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

            Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

            Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

            Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її