File:Circle graph and circle model.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 287 × 585 pixels, file size: 5 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

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[edit]

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[edit]

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[edit]

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= }}

File history

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

Date/TimeThumbnailDimensionsUserComment
current02:35, 16 December 2014Thumbnail for version as of 02:35, 16 December 2014287 × 585 (5 KB)Mx. Granger (talk | contribs)Transferred from en.wikipedia

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata