Results 1 to 12 of 12

Math Help - Drawing pictures in LaTeX

  1. #1
    MHF Contributor Swlabr's Avatar
    Joined
    May 2009
    Posts
    1,176

    Drawing pictures in LaTeX

    I want to be able to draw pictures in LaTeX. Specifically, I want to be able to draw,

    -Rectangles, split into squares (so they look like a stack of squares)

    -Annuli, with lines going for the inner circle to the outer, as well as circles between the outer two circles

    such that all the lines can be labeled.

    Does anyone know of a package which might let me do this?...
    Follow Math Help Forum on Facebook and Google+

  2. #2
    A Plied Mathematician
    Joined
    Jun 2010
    From
    CT, USA
    Posts
    6,318
    Thanks
    4
    Awards
    2
    Check this out.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    May 2009
    Posts
    23

    Drawing with LaTeX

    Hi,

    you could use PSTricks or pgf/TikZ. TikZ may be used with pdfLaTeX, PSTricks cannot - at least not directly. You will find links to their web sites and to example galleries here:




    Stefan
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Member Focus's Avatar
    Joined
    Aug 2009
    Posts
    228
    Quote Originally Posted by Swlabr View Post
    I want to be able to draw pictures in LaTeX. Specifically, I want to be able to draw,

    -Rectangles, split into squares (so they look like a stack of squares)

    -Annuli, with lines going for the inner circle to the outer, as well as circles between the outer two circles

    such that all the lines can be labeled.

    Does anyone know of a package which might let me do this?...
    I recommend XFig. It complements latex really well and can also export latex code (to use with pstricks). Personally I export mine as pdf/eps and include them in the document (I have a BASH script if you want it).
    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor Swlabr's Avatar
    Joined
    May 2009
    Posts
    1,176
    Quote Originally Posted by Focus View Post
    I recommend XFig. It complements latex really well and can also export latex code (to use with pstricks). Personally I export mine as pdf/eps and include them in the document (I have a BASH script if you want it).
    Hmm-I may look into this later, but at the moment pgfLaTeX seems to be fine for the rectangles. Not sure how it will work with the annuli though, so I'll keep this in mind...
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Member Mollier's Avatar
    Joined
    Nov 2009
    From
    Norway
    Posts
    234
    Awards
    1
    I just found this one:

    The Ipe extensible drawing editor

    Haven't really used it yet, but it has nice GUI and looks simple to use.
    Follow Math Help Forum on Facebook and Google+

  7. #7
    Moo
    Moo is offline
    A Cute Angle Moo's Avatar
    Joined
    Mar 2008
    From
    P(I'm here)=1/3, P(I'm there)=t+1/3
    Posts
    5,618
    Thanks
    6
    I like TikZ
    It's kind of simple when you've got examples. Easy to grasp for simple figures.
    Follow Math Help Forum on Facebook and Google+

  8. #8
    Member Mollier's Avatar
    Joined
    Nov 2009
    From
    Norway
    Posts
    234
    Awards
    1
    Quote Originally Posted by Moo View Post
    I like TikZ
    It's kind of simple when you've got examples. Easy to grasp for simple figures.
    Seems like people create really nice stuff with TikZ, but to me it looks really time-consuming. Does it take long until your are able to quickly create graphics?
    Follow Math Help Forum on Facebook and Google+

  9. #9
    Moo
    Moo is offline
    A Cute Angle Moo's Avatar
    Joined
    Mar 2008
    From
    P(I'm here)=1/3, P(I'm there)=t+1/3
    Posts
    5,618
    Thanks
    6
    I think it took me about 5 or 10 minutes. I had good examples so I could quickly do my own from these and the graphs I wanted to do are not that complicated. You just have to understand what the commands stand for.
    But it took more time to do complicated trees, and I needed help from someone. Though not everybody needs to draw trees everyday ^^
    Follow Math Help Forum on Facebook and Google+

  10. #10
    Rhymes with Orange Chris L T521's Avatar
    Joined
    May 2008
    From
    Chicago, IL
    Posts
    2,844
    Thanks
    3

    Power of TikZ

    Here is a sample image I created using TikZ (its attached to this post; its definitely more complex than a rectangle... XD). It took quite a long time (a few hours) to make the first image, and then ~5 minutes for the second one. XD

    The code:

    Code:
    \documentclass{article}
    
    \usepackage{graphicx,color,pgf,tikz,pgfplots,pgfkeys}
    \usepackage[landscape]{geometry}
    
    \begin{document}
       
       \begin{figure}[!ht]
       \centering
       \begin{tikzpicture}[domain=-10:10]
       
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          %%%%%%% Torus Graphic %%%%%%%
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          
          \draw (-3.87,-.6) to [out=120,in=60,distance=10cm] (3.87,-.6);
          \draw (-1.7,1.2) to [out=60,in=120,distance=1cm] (1.7,1.2);
          \draw (-1.525,.3) -- (-1.8,1.7);
          \draw (1.525,.3) -- (1.8,1.7);
          \draw[pink,very thick] (-3.99,.31) to [out=120,in=200,distance=2.9cm] (-1.45,5.73);
          \draw[red,very thick] (-3.8,.7) to [out=115,in=-155,distance=2.75cm,looseness=.3] (-1,5.8);
          \draw[pink,very thick] (-3.595,.935) to [out=105,in=-145,distance=2.675cm,looseness=.2] (-.65,5.85);
          \draw[red,very thick] (-3.325,1.12) to [out=105,in=-132,distance=2.487cm,looseness=.2] (-.2,5.88);
          \draw[pink,very thick] (-2.925,1.25) to [out=105,in=-127,distance=2.2cm,looseness=.2] (.2,5.89);
          \draw[red,very thick] (-2.575,1.24) to [out=105,in=-115,distance=2cm,looseness=.2] (.5,5.87);
          \draw[pink,very thick] (-2.315,1.19) to [out=89,in=70,distance=4.75cm,looseness=.2] (3.99,.31);
          \draw[red,very thick] (-2.025, 1.03) to [out=92,in=75,distance=4.22cm,looseness=.2] (3.83,.68);
          
          \draw[pink,very thick] (-1.45,1.5) to [out=90,in=75,distance=3.39cm,looseness=.2] (3.6,.98);
          \draw[red,very thick] (-1,1.7) to [out=90,in=75,distance=2.8cm,looseness=.2] (3.3,1.15);
          \draw[pink,very thick] (-.65,1.8) to [out=90,in=75,distance=2.4cm,looseness=.2] (2.92,1.27);
          \draw[red,very thick] (-.2, 1.85) to [out=90,in=80,distance=2cm,looseness=.2] (2.615,1.262);
          \draw[pink,very thick] (.2,1.85) to [out=87,in=75,distance=1.725cm,looseness=.2] (2.285,1.19);
          \draw[red,very thick] (.5,1.8) to [out=82,in=75,distance=1.5cm,looseness=.2] (1.975,1);
    
          \draw[green,very thick] (-2.75,0) circle (1.25cm);
          \draw[green,very thick] (2.75,0) circle (1.25cm);            
          
          
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          %%%%%%% Tight Contact Structure %%%%%%%
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          
          %%%%%%%%%%%%%%%%%%%
          %%%%%%% LCD %%%%%%%
          %%%%%%%%%%%%%%%%%%%
          
          
          \draw[red,very thick] (-2.183,1.144) to [out=-100,in=-95,distance=.4cm,looseness=.2] (-2.458,1.215);   % (0,1)
          \draw[red,very thick] (-2.75,1.25) to [out=-90,in=-45,distance=.85cm,looseness=.2] (-3.9995,.109);     % (2,7)
          \draw[red,very thick] (-3.136,1.189) to [out=-90,in=-45,distance=.65cm,looseness=.2] (-3.883,.528);    % (3,6)
          \draw[red,very thick] (-3.449,1.036) to [out=-60,in=-85,distance=.4cm,looseness=.2] (-3.686,.828);     % (4,5)
          
          %%%%%%%%%%%%%%%%%%%
          %%%%%%% RCD %%%%%%%
          %%%%%%%%%%%%%%%%%%%
          
          \draw[red,very thick] (2.183,1.144) to [out=-85,in=-95,distance=.4cm,looseness=.2] (2.458,1.215);     % (0,1)
          \draw[red,very thick] (2.75,1.25) to [out=-90,in=-135,distance=.85cm,looseness=.2] (3.9995,.109);     % (2,7)
          \draw[red,very thick] (3.136,1.189) to [out=-90,in=-135,distance=.65cm,looseness=.2] (3.883,.528);    % (3,6)
          \draw[red,very thick] (3.449,1.036) to [out=-105,in=-105,distance=.4cm,looseness=.2] (3.686,.828);    % (4,5)
          
          
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          %%%%%%% Vertices - LCD %%%%%%%
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          
          \fill [black,opacity=1] (-3.9995,.109) circle (2pt); % 7      
          \fill [black,opacity=1] (-3.883,.528) circle (2pt);  % 6
          \fill [black,opacity=1] (-3.686,.828) circle (2pt);  % 5
          \fill [black,opacity=1] (-3.449,1.036) circle (2pt); % 4
          \fill [black,opacity=1] (-3.136,1.189) circle (2pt); % 3
          \fill [black,opacity=1] (-2.75,1.25) circle (2pt);   % 2
          \fill [black,opacity=1] (-2.458,1.215) circle (2pt); % 1
          \fill [black,opacity=1] (-2.183,1.114) circle (2pt); % 0
          
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          %%%%%%% Vertices - RCD %%%%%%%
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          
          \fill [black,opacity=1] (3.9995,.109) circle (2pt);  % 0
          \fill [black,opacity=1] (3.883,.528) circle (2pt);   % 1
          \fill [black,opacity=1] (3.686,.828) circle (2pt);   % 2
          \fill [black,opacity=1] (3.449,1.036) circle (2pt);  % 3
          \fill [black,opacity=1] (3.136,1.189) circle (2pt);  % 4
          \fill [black,opacity=1] (2.75,1.25) circle (2pt);    % 5
          \fill [black,opacity=1] (2.458,1.215) circle (2pt);  % 6
          \fill [black,opacity=1] (2.183,1.114) circle (2pt);  % 7
          
          
       \end{tikzpicture}
       
       \caption{Tight Contact Structure for Arclist $\{(0\,1),(2\,7),(3\,6),(4\,5)\}$.}
       
       \end{figure}
    
    
       \newpage   
    
    
       \begin{figure}[!ht]
       \centering
       \begin{tikzpicture}[domain=-6:6]
       
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          %%%%%%% Torus Graphic %%%%%%%
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          
          \draw (-3.87,-.6) to [out=120,in=60,distance=10cm] (3.87,-.6);
          \draw (-1.7,1.2) to [out=60,in=120,distance=1cm] (1.7,1.2);
          \draw (-1.525,.3) -- (-1.8,1.7);
          \draw (1.525,.3) -- (1.8,1.7);
          \draw[pink,very thick] (-3.99,.31) to [out=120,in=200,distance=2.9cm] (-1.45,5.73);
          \draw[red,very thick] (-3.8,.7) to [out=115,in=-155,distance=2.75cm,looseness=.3] (-1,5.8);
          \draw[pink,very thick] (-3.595,.935) to [out=105,in=-145,distance=2.675cm,looseness=.2] (-.65,5.85);
          \draw[red,very thick] (-3.325,1.12) to [out=105,in=-132,distance=2.487cm,looseness=.2] (-.2,5.88);
          \draw[pink,very thick] (-2.925,1.25) to [out=105,in=-127,distance=2.2cm,looseness=.2] (.2,5.89);
          \draw[red,very thick] (-2.575,1.24) to [out=105,in=-115,distance=2cm,looseness=.2] (.5,5.87);
          \draw[pink,very thick] (-2.315,1.19) to [out=89,in=70,distance=4.75cm,looseness=.2] (3.99,.31);
          \draw[red,very thick] (-2.025, 1.03) to [out=92,in=75,distance=4.22cm,looseness=.2] (3.83,.68);
          
          \draw[pink,very thick] (-1.45,1.5) to [out=90,in=75,distance=3.39cm,looseness=.2] (3.6,.98);
          \draw[red,very thick] (-1,1.7) to [out=90,in=75,distance=2.8cm,looseness=.2] (3.3,1.15);
          \draw[pink,very thick] (-.65,1.8) to [out=90,in=75,distance=2.4cm,looseness=.2] (2.92,1.27);
          \draw[red,very thick] (-.2, 1.85) to [out=90,in=80,distance=2cm,looseness=.2] (2.615,1.262);
          \draw[pink,very thick] (.2,1.85) to [out=87,in=75,distance=1.725cm,looseness=.2] (2.285,1.19);
          \draw[red,very thick] (.5,1.8) to [out=82,in=75,distance=1.5cm,looseness=.2] (1.975,1);
    
          \draw[green,very thick] (-2.75,0) circle (1.25cm);
          \draw[green,very thick] (2.75,0) circle (1.25cm);            
          
          
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          %%%%%%% Overtwisted Contact Structure %%%%%%%
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          
          %%%%%%%%%%%%%%%%%%%
          %%%%%%% LCD %%%%%%%
          %%%%%%%%%%%%%%%%%%%
          
          
          \draw[red,very thick] (-2.183,1.144) to [out=-90,in=-85,distance=.85cm,looseness=.2] (-3.9995,.109);   % (0,7)
          \draw[red,very thick] (-2.458,1.215) to [out=-90,in=-85,distance=.65cm,looseness=.2] (-3.449,1.036);   % (1,4)
          \draw[red,very thick] (-2.75,1.25) to [out=-90,in=-85,distance=.4cm,looseness=.2] (-3.136,1.189);      % (2,3)
          \draw[red,very thick] (-3.686,.828) to [out=-50,in=-75,distance=.4cm,looseness=.2] (-3.883,.528);      % (5,6)
          
          %%%%%%%%%%%%%%%%%%%
          %%%%%%% RCD %%%%%%%
          %%%%%%%%%%%%%%%%%%%
          
          
          \draw[red,very thick] (2.183,1.144) to [out=-100,in=-95,distance=.85cm,looseness=.2] (3.9995,.109);    % (0,7)
          \draw[red,very thick] (2.458,1.215) to [out=-100,in=-85,distance=.65cm,looseness=.2] (3.449,1.036);    % (1,4)
          \draw[red,very thick] (2.75,1.25) to [out=-110,in=-95,distance=.4cm,looseness=.2] (3.136,1.189);       % (2,3)
          \draw[red,very thick] (3.686,.828) to [out=-130,in=-105,distance=.4cm,looseness=.2] (3.883,.528);      % (5,6)      
          
          
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          %%%%%%% Vertices - LCD %%%%%%%
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          
          \fill [black,opacity=1] (-3.9995,.109) circle (2pt); % 7      
          \fill [black,opacity=1] (-3.883,.528) circle (2pt);  % 6
          \fill [black,opacity=1] (-3.686,.828) circle (2pt);  % 5
          \fill [black,opacity=1] (-3.449,1.036) circle (2pt); % 4
          \fill [black,opacity=1] (-3.136,1.189) circle (2pt); % 3
          \fill [black,opacity=1] (-2.75,1.25) circle (2pt);   % 2
          \fill [black,opacity=1] (-2.458,1.215) circle (2pt); % 1
          \fill [black,opacity=1] (-2.183,1.114) circle (2pt); % 0
          
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          %%%%%%% Vertices - RCD %%%%%%%
          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
          
          \fill [black,opacity=1] (3.9995,.109) circle (2pt);  % 0
          \fill [black,opacity=1] (3.883,.528) circle (2pt);   % 1
          \fill [black,opacity=1] (3.686,.828) circle (2pt);   % 2
          \fill [black,opacity=1] (3.449,1.036) circle (2pt);  % 3
          \fill [black,opacity=1] (3.136,1.189) circle (2pt);  % 4
          \fill [black,opacity=1] (2.75,1.25) circle (2pt);    % 5
          \fill [black,opacity=1] (2.458,1.215) circle (2pt);  % 6
          \fill [black,opacity=1] (2.183,1.114) circle (2pt);  % 7
          
          
       \end{tikzpicture}
       
       \caption{Overtwisted Contact Structure for Arclist $\{(0\,7),(1\,4),(2\,3),(5\,6)\}$.}
       
       \end{figure}
    
    \end{document}
    Attached Thumbnails Attached Thumbnails Drawing pictures in LaTeX-torus.pdf  
    Follow Math Help Forum on Facebook and Google+

  11. #11
    Rhymes with Orange Chris L T521's Avatar
    Joined
    May 2008
    From
    Chicago, IL
    Posts
    2,844
    Thanks
    3

    Another complex example

    Here's a complex-but-not-too-complex example:

    Code:
    \documentclass{article}
    \usepackage{amsmath,amsfonts,amssymb,graphicx,color,pgf,tikz,pgfplots,pgfkeys}
    
    \begin{document}
    
    \begin{figure}[!ht]
    \centering
       \begin{tikzpicture}
          \draw (-2,0) circle (1.25cm) node[above=1.25cm]{$\left(01\right)\left(25\right)\left(34\right)\left(67\right)$};
          \draw[green,very thick] (-3+1,0) circle (1.25cm);  % Cutting disk with two bypasses
          
          \draw[red,very thick] (-3.478354291+1, 1.154849416) to [out=-80,in=-100,distance=.4cm,looseness=.2] (-2.521645709+1, 1.154849416);
          \draw[red,very thick] (-4.154849416+1, .4783542906) to [out=-35,in=35,distance=.4cm,looseness=.2] (-4.154849416+1, -.4783542906);
          \draw[red,very thick] (-1.845150584+1, .4783542906) to [out=-182,in=88,distance=.6cm,looseness=.2] (-3.478354291+1, -1.154849416);
          \draw[red,very thick] (-1.845150584+1, -.4783542906) to [out=140,in=130,distance=.4cm,looseness=.2] (-2.521645709+1, -1.154849416);
          \draw[dashed,very thick] (-3+1,1.1) -- (-2.1+1,-.75) node[above=1.2cm,left=.175cm]{${\color{red}\alpha}$};
          \draw[dashed,very thick] (-4.1+1,0) -- (-2.3+1,-.85) node[above=.65cm,left=.7cm]{${\color{blue}\beta}$};
          
          \fill [black,opacity=1] (-1.845150584+1, .4783542906) circle (1.25pt);
          \fill [black,opacity=1] (-2.521645709+1, 1.154849416) circle (1.25pt);
          \fill [black,opacity=1] (-3.478354291+1, 1.154849416) circle (1.25pt);
          \fill [black,opacity=1] (-4.154849416+1, .4783542906) circle (1.25pt);
          \fill [black,opacity=1] (-4.154849416+1, -.4783542906) circle (1.25pt);
          \fill [black,opacity=1] (-3.478354291+1, -1.154849416) circle (1.25pt);
          \fill [black,opacity=1] (-2.521645709+1, -1.154849416) circle (1.25pt);
          \fill [black,opacity=1] (-1.845150584+1, -.4783542906) circle (1.25pt);    
          
          \draw[->,thick] (-.5,.5)--(1.5,1.5) node[below=.25cm, left=.8cm]{$\color{red}\alpha$};
          \draw[->,thick] (-.5,-.5) -- (1.5,-1.5) node[above=.75cm, left=.8cm]{$\color{blue}\beta$};
          
          %%%%%%%%%%%%%%
          %% BYPASS 1 %%
          %%%%%%%%%%%%%%
          
          \draw (3,2) circle (1.25cm) node[above=1.25cm]{$\left(05\right)\left(14\right)\left(23\right)\left(67\right)$};
          \draw[green,very thick] (3,2) circle (1.25cm);  
          
          \draw[red,very thick] (2.521645709, 2+1.154849416) to [out=-70,in=70,distance=.625cm,looseness=.2] (2.521645709, 2-1.154849416); %(05)      
          \draw[red,very thick] (4.154849416, 2+.4783542906) to [out=-35+250,in=35+110,distance=.425cm,looseness=.2] (4.154849416, 2-.4783542906); %(23)    
          \draw[red,very thick] (3.478354291, 2+1.154849416) to [out=-110,in=110,distance=.625cm,looseness=.2] (3.478354291, 2-1.154849416); %(14)      
          \draw[red,very thick] (1.845150584, 2+.4783542906) to [out=-35,in=35,distance=.4cm,looseness=.2] (1.845150584, 2-.4783542906); %(76)
          
          \fill [black,opacity=1] (1.845150584, 2+.4783542906) circle (1.25pt);
          \fill [black,opacity=1] (2.521645709, 2+1.154849416) circle (1.25pt);
          \fill [black,opacity=1] (3.478354291, 2+1.154849416) circle (1.25pt);
          \fill [black,opacity=1] (4.154849416, 2+.4783542906) circle (1.25pt);
          \fill [black,opacity=1] (4.154849416, 2-.4783542906) circle (1.25pt);
          \fill [black,opacity=1] (3.478354291, 2-1.154849416) circle (1.25pt);
          \fill [black,opacity=1] (2.521645709, 2-1.154849416) circle (1.25pt);
          \fill [black,opacity=1] (1.845150584, 2-.4783542906) circle (1.25pt);      
          
          
          %%%%%%%%%%%%%%
          %% BYPASS 2 %%
          %%%%%%%%%%%%%%
          
          \draw (3,-2) circle (1.25cm) node[above=1.25cm]{$\left(01\right)\left(23\right)\left(47\right)\left(56\right)$};
          \draw[green,very thick] (3,-2) circle (1.25cm);
          
          \draw[red,very thick] (2.521645709, 1.154849416-2) to [out=-80,in=-100,distance=.4cm,looseness=.2] (3.478354291, 1.154849416-2);
          \draw[red,very thick] (4.154849416, .4783542906-2) to [out=-35+250,in=35+110,distance=.425cm,looseness=.2] (4.154849416, -.4783542906-2);
          
          \draw[red,very thick] (2.521645709, -1.154849416-2) to [out=60,in=40,distance=.475cm,looseness=.2] (1.845150584, -.4783542906-2);
          
          \draw[red,very thick] (1.845150584, .4783542906-2) to [out=25,in=85,distance=.65cm,looseness=1] (3.478354291, -1.154849416-2); %4
          
          \fill [black,opacity=1] (1.845150584, .4783542906-2) circle (1.25pt);
          \fill [black,opacity=1] (2.521645709, 1.154849416-2) circle (1.25pt);
          \fill [black,opacity=1] (3.478354291, 1.154849416-2) circle (1.25pt);
          \fill [black,opacity=1] (4.154849416, .4783542906-2) circle (1.25pt);
          \fill [black,opacity=1] (4.154849416, -.4783542906-2) circle (1.25pt);
          \fill [black,opacity=1] (3.478354291, -1.154849416-2) circle (1.25pt);
          \fill [black,opacity=1] (2.521645709, -1.154849416-2) circle (1.25pt);
          \fill [black,opacity=1] (1.845150584, -.4783542906-2) circle (1.25pt);      
       \end{tikzpicture}
       
    \end{figure}
    
    \end{document}
    Attached Thumbnails Attached Thumbnails Drawing pictures in LaTeX-bypasses.pdf  
    Follow Math Help Forum on Facebook and Google+

  12. #12
    Rhymes with Orange Chris L T521's Avatar
    Joined
    May 2008
    From
    Chicago, IL
    Posts
    2,844
    Thanks
    3

    Another example: nodes and trees

    Here's another example, this time of nodes/trees:

    Code:
    \documentclass{article}
    
    \usepackage{amsmath,amsthm,amssymb,amsfonts,graphicx,color,pgf,tikz,pgfplots,pgfkeys,multicol}
    \usepackage[landscape]{geometry}
    \usetikzlibrary{topaths}
    
    \oddsidemargin 0in 
    \topmargin -1.5in
    \textwidth 9.5in 
    \textheight 7in 
    
    \begin{document}
    
    \begin{tabular}{cc}
    
    \begin{tikzpicture}
    \node [circle,draw] (a) at (0,0) {(0 1)};
    \node [circle,draw] (b) at (2,2.5) {(2 3)};
    \node [circle,draw] (c) at (2,-2.5) {(2 7)};
    \node [circle,draw] (d) at (4,3.5) {(4 5)};
    \node [circle,draw] (e) at (4,1.5) {(4 7)};
    \node [circle,draw] (f) at (6,3.5) {(6 7)};
    \node [circle,draw] (g) at (6,1.5) {(5 6)};
    \node [circle,draw] (h) at (2,0) {(2 5)};
    \node [circle,draw] (i) at (4,0) {(3 4)};
    \node [circle,draw] (j) at (6,0) {(6 7)};
    \node [circle,draw] (k) at (4,-1.5) {(3 4)};
    \node [circle,draw] (l) at (4,-3.5) {(3 6)};
    \node [circle,draw] (m) at (6,-1.5) {(5 6)};
    \node [circle,draw] (n) at (6,-3.5) {(4 5)};
    \path (a) edge (b) edge (c);
    \path (b) edge (d) edge (e);
    \path (d) edge (f);
    \path (e) edge (g);
    \path (a) edge (h);
    \path (h) edge (i);
    \path (i) edge (j);
    \path (c) edge (k) edge (l);
    \path (k) edge (m);
    \path (l) edge (n);
    \end{tikzpicture}
    
    
    &
    
    
    \begin{tikzpicture}
    \node [circle,draw] (a) at (0,0) {(0 3)};
    \node [circle,draw] (b) at (2,0) {(1 2)};
    \node [circle,draw] (c) at (4,1.5) {(4 7)};
    \node [circle,draw] (d) at (4,-1.5) {(4 5)};
    \node [circle,draw] (e) at (6,1.5) {(5 6)};
    \node [circle,draw] (f) at (6,-1.5) {(6 7)};
    \path (a) edge (b);
    \path (b) edge (c) edge (d);
    \path (c) edge (e);
    \path (d) edge (f);
    \end{tikzpicture}
    \\
    
    
    \begin{tikzpicture}
    \node [circle,draw] (a) at (0,0) {(0 5)};
    \node [circle,draw] (b) at (2,1.5) {(1 2)};
    \node [circle,draw] (c) at (2,-1.5) {(1 4)};
    \node [circle,draw] (d) at (4,1.5) {(3 4)};
    \node [circle,draw] (e) at (4,-1.5) {(2 3)};
    \node [circle,draw] (f) at (6,1.5) {(6 7)};
    \node [circle,draw] (g) at (6,-1.5) {(6 7)};
    \path (a) edge (b) edge (c);
    \path (b) edge (d);
    \path (d) edge (f);
    \path (c) edge (e);
    \path (e) edge (g);
    \end{tikzpicture}
    
    
    &
    
    
    \begin{tikzpicture}
    \node [circle,draw] (a) at (0,0) {(0 7)};
    \node [circle,draw] (b) at (2,2.5) {(1 2)};
    \node [circle,draw] (c) at (2,-2.5) {(1 6)};
    \node [circle,draw] (d) at (4,3.5) {(3 4)};
    \node [circle,draw] (e) at (4,1.5) {(3 6)};
    \node [circle,draw] (f) at (6,3.5) {(5 6)};
    \node [circle,draw] (g) at (6,1.5) {(4 5)};
    \node [circle,draw] (h) at (2,0) {(1 4)};
    \node [circle,draw] (i) at (4,0) {(2 3)};
    \node [circle,draw] (j) at (6,0) {(5 6)};
    \node [circle,draw] (k) at (4,-1.5) {(2 3)};
    \node [circle,draw] (l) at (4,-3.5) {(2 5)};
    \node [circle,draw] (m) at (6,-1.5) {(4 5)};
    \node [circle,draw] (n) at (6,-3.5) {(3 4)};
    \path (a) edge (b) edge (c);
    \path (b) edge (d) edge (e);
    \path (d) edge (f);
    \path (e) edge (g);
    \path (a) edge (h);
    \path (h) edge (i);
    \path (i) edge (j);
    \path (c) edge (k) edge (l);
    \path (k) edge (m);
    \path (l) edge (n);
    \end{tikzpicture}
    
    \end{tabular}
    
    \end{document}
    Attached Thumbnails Attached Thumbnails Drawing pictures in LaTeX-arclisttree8.pdf  
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Drawing in latex
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: December 20th 2011, 06:00 AM
  2. drawing latex formula
    Posted in the LaTeX Help Forum
    Replies: 3
    Last Post: June 17th 2011, 01:18 AM
  3. Calculus Help Please (Pictures) Thanks
    Posted in the Calculus Forum
    Replies: 3
    Last Post: December 12th 2010, 03:02 PM
  4. exponential equation (With pictures!)
    Posted in the Pre-Calculus Forum
    Replies: 5
    Last Post: April 24th 2010, 11:19 PM

Search Tags


/mathhelpforum @mathhelpforum