From 1714d50b9ad18a49e5d1053ae715030752548c24 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sun, 30 Jul 2023 14:07:03 -0400 Subject: [PATCH] Added polar coordinates sample --- polar-coordinates-template.tex | 64 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 polar-coordinates-template.tex diff --git a/polar-coordinates-template.tex b/polar-coordinates-template.tex new file mode 100644 index 0000000..392c6d9 --- /dev/null +++ b/polar-coordinates-template.tex @@ -0,0 +1,64 @@ +%POLAR COORDINATES +%The print template for A4 paper (portrait) +%Author: Zoran Nikolic +\documentclass[12pt]{article} +\usepackage[margin=0.5in,paper=a4paper]{geometry} %Shrinking margins to 0.5in +\usepackage[x11names]{xcolor} %Additional colors +\usepackage{tikz} +%%%< +\usepackage{verbatim} +\usepackage[active,tightpage]{preview} +\PreviewEnvironment{tikzpicture} +\setlength\PreviewBorder{5pt}% +%%%> + +% Found at https://texample.net/tikz/examples/polar-coordinates-template/ + +\begin{comment} +:Title: Polar coordinates template + +\end{comment} +\usepackage{euler} %Nicer numbers + +%Note about the colors: +% The color of the "ray" lines should not be +% black or gray as on some printers, significant +% aliasing distorsion becomes visible. + +\begin{document} +\thispagestyle{empty} %Please, no page numbers or similar + +\begin{center} + \begin{tikzpicture} + %Circles + \foreach \r in {1, 2,...,7} + \draw[SteelBlue3, thick] (0,0) circle (\r); + \foreach \r in {0.5, 1.5,...,7} + \draw[Azure4, thin] (0,0) circle (\r); + %1° Rays + \foreach \a in {0, 1,...,359} + \draw[Azure4] (\a:7.7) -- (\a:8); + %5° Rays + \foreach \a in {0, 5,...,359} + \draw[Azure4] (\a:7.5) -- (\a:8); + %15° Rays + \foreach \a in {0, 15,...,359} + \draw[thick,Azure4] (\a:1) -- (\a:8); + %30° Rays + \foreach \a in {0, 30,...,359} + \draw[thick,Azure4] (0, 0) -- (\a:8); + %Radius labels (background filled white) + \foreach \r in {1, 2,...,7} + \draw (\r,0) node[inner sep=1pt,below=3pt,rectangle,fill=white] {$\r$}; + %Main rays + \foreach \a in {0, 90,...,359} + \draw[very thick] (0, 0) -- (\a:8); + %Angle labels + \foreach \a in {0, 15,...,359} + \draw (\a: 8.5) node {$\a^\circ$}; + %Central point + \draw[fill=red] (0,0) circle(0.7mm); + \end{tikzpicture} +\end{center} + +\end{document}