-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest2.tex
35 lines (29 loc) · 1.36 KB
/
test2.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\documentclass{standalone}
\usepackage{tikz}
%% This version scales the whole diagram to one unit (1cm). Should be able to scale the entire drawing.
\begin{document}
\begin{tikzpicture}[scale=10]
\def\scalex{2cm};
\def\scaley{\scalex*0.75};
\def\zerox{0.1cm};
\def\zeroy{0.1cm};
\draw[blue,very thin, step=0.1cm] (-1,0) grid (0,1);
\foreach \step in {0.00,0.02,0.04,0.06,0.08,0.1,0.2,0.3,0.4,0.5,0.6} { %for each of the curved lines
\foreach \y in {0.0,0.01,...,0.69} { %for each degree in the vertical scale
\draw[thick] ({((-sin(90-\y*100))*\step*\scalex)+\zerox},{(\y*\scaley)+\zeroy}) --
({((-sin(90-(\y+0.01)*100))*\step*\scalex)+\zerox},{((\y+0.01)*\scaley)+\zeroy});
}
}
\foreach \lat in {0, 10,...,70} { %For each of the horizontal latitude lines
\draw[thick] ({(-sin(90-\lat)*.6*\scalex)+\zerox},{(\lat/100*\scaley)+\zeroy}) --
(\zerox, {(\lat/100*\scaley)+\zeroy}) node [right] {\lat};
}
\foreach \lat in {5,15,...,65} { %For each of the thinner horizontal latitude lines
\draw[very thin] ({(-sin(90-\lat)*.6*\scalex)+\zerox}, {(\lat/100*\scaley)+\zeroy}) --
(\zerox,{(\lat/100*\scaley)+\zeroy});
}
\foreach \min in {0,10,...,50} { %For each minute in the latitude scale
\node [above left] at ({((-\min/10)*(\scalex/10))-(\scalex/10)+\zerox}, \zeroy) {\min};
}
\end{tikzpicture}
\end{document}