Loading
  • 21 Aug, 2019

  • By, Wikipedia

File:Graph Of Non-adjacent Weekdays.svg

LaTeX/TikZ source code

	%\documentclass{minimal}
	\documentclass[tikz,border=5pt]{standalone}
	%% Compile svg by running:
	%% latex example.tex #OR:  lualatex --output-format=dvi example.tex
	%% dvisvgm --bbox=5 example.dvi
	\usepackage{tikz}
	\usepackage{microtype}
	\DisableLigatures{encoding = *, family = * }
	\usetikzlibrary{calc}
	
	\begin{document}%
	\begin{tikzpicture}[
		scale=1,every node/.style={draw,circle,fill=blue!40!black},
	]		
		\def\diam{2.3};
		\foreach \x/\day/\c in {0/Monday/1, 1/Tuesday/1, 2/Wednesday/3.5, 3/Thursday/3.6, 4/Friday/4, 5/Saturday/4, 6/Sunday/7}
			\node[label={(-\c*360/7)}:\day ] (d\x) at ({(-\x*360/7)}:\diam) {};
	
		\foreach \x in {0,...,6}
		{
			\pgfmathtruncatemacro{\xp}{mod(\x+2,7)};
			\draw (d\x.center) to[bend right=10] (d\xp.center);
			\pgfmathtruncatemacro{\xpp}{mod(\x+3,7)};
			\draw (d\x.center) to[bend right=1] (d\xpp.center);		
		}
		
		\foreach \x/\day/\c in {0/Monday/1, 1/Tuesday/1, 2/Wednesday/3.5, 3/Thursday/3.6, 4/Friday/4, 5/Saturday/4, 6/Sunday/7}
			\node[label={(-\c*360/7)}:\day] (d\x) at ({(-\x*360/7)}:\diam) {};	
	\end{tikzpicture}%
	\end{document}

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

2 April 2017

File history

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

Date/TimeThumbnailDimensionsUserComment
current12:28, 2 April 2017Thumbnail for version as of 12:28, 2 April 2017277 × 221 (18 KB)Tokenzerosans font
10:31, 2 April 2017Thumbnail for version as of 10:31, 2 April 2017268 × 216 (19 KB)TokenzeroUser created page with UploadWizard

The following 2 pages use this file:

Global file usage

The following other wikis use this file:

Metadata