File:Circle graph and circle model.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 287 × 585 pixels, file size: 5 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: A Circle graph, and the corresponding circle model, consisting of six chords.
    Date
    Source Own work (Original text: self-made)
    Author Lyonsam

    Source code

    This image was created using LaTeX in conjunction with the PGF/TikZ package.

    \documentclass{article}
    \def\pgfsysdriver{pgfsys-tex4ht.def}
    \usepackage{tikz}
    \begin{document}
    \thispagestyle{empty}
    \begin{center}
      \huge
      \begin{tikzpicture}[ultra thick,scale=4]
        \foreach \color/\pos/\name in {{red/(0,-1.5)/a},{blue/(0.9,-2.25)/b},{orange/(0,-2.25)/c},{violet/(-0.9,-2.25)/d},{green/(0,-3)/e}}
          \node[\color,draw,circle,fill=white,minimum size=22pt,inner sep=0pt] (\name) at \pos {$\name$};
        \foreach \src/\tgt in {a/b,a/c,a/d,b/c,c/d,b/e,d/e}
          \draw (\src) -- (\tgt);
        \clip[draw] (0,0) circle (1cm);
        \draw[red] (-1,0) -- (1,0.8) node[pos=0.5,above=-0.75mm] {a};
        \draw[blue] (-1,1) -- (1,-0.5) node[pos=0.7,above=-1mm] {b};
        \draw[orange] (0.75,1) -- (-1,-1) node[pos=0.55,right=-1mm] {c};
        \draw[violet] (-1,0.75) -- (0,-1) node[midway,left=-0.8mm] {d};
        \draw[green] (-0.5,-1) -- (1,0) node[midway,above=-0.9mm] {e};
      \end{tikzpicture}
    \end{center}
    \end{document}
    

    The above LaTeX code was transformed into a html document by the program htlatex, which creates an svg image for each graphic in the document. The resulting svg image was then cleaned up before posting to wikipedia.

    Licensing

    Public domain This work has been released into the public domain by its author, Lyonsam at English Wikipedia. This applies worldwide.
    In some countries this may not be legally possible; if so:
    Lyonsam grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

    Original upload log

    The original description page was here. All following user names refer to en.wikipedia.
    Date/Time Dimensions User Comment
    2008-04-20 19:48 287×585× (4985 bytes) Lyonsam {{Information |Description=A [[Circle graph]], and the corresponding circle model, consisting of six chords. |Source=self-made |Date=April 20, 2008 |Author= [[User:Lyonsam|Lyonsam]] |Permission= |other_versions= }}

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    20 April 2008

    image/svg+xml

    fa0273bfb3b32ad1222fde7b0ca39e732555c55e

    4,985 byte

    585 pixel

    287 pixel

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current03:35, 16 December 2014Thumbnail for version as of 03:35, 16 December 2014287 × 585 (5 KB)wikimediacommons>Mx. GrangerTransferred from en.wikipedia

    There are no pages that use this file.