• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiónf1ed34381eaafb73d4432fcd6c85e888fe7e5f48 (tree)
Tiempo2013-08-22 03:51:26
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

A code to generate a good looking picture using only tikz and latex.

Cambiar Resumen

Diferencia incremental

diff -r fde7dc791693 -r f1ed34381eaa latex-documents/tikz-picture.tex
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/latex-documents/tikz-picture.tex Wed Aug 21 20:51:26 2013 +0200
@@ -0,0 +1,180 @@
1+ \documentclass{standalone}
2+
3+
4+% \documentclass[parskip]{scrartcl}
5+% \usepackage[margin=15mm]{geometry}
6+
7+\usepackage{tkz-euclide}
8+\usepackage{tikz}
9+\pagestyle{plain}
10+\tikzset{>=latex}
11+
12+\usetikzlibrary{shapes}
13+\usetikzlibrary{positioning,arrows}
14+\usetikzlibrary{intersections,positioning}
15+
16+
17+\begin{document}
18+
19+\tikzstyle{myarrows}=[line width=.6mm,draw=black,-triangle
20+45,postaction={draw, line width=.6mm, shorten >=4mm, -}]
21+
22+
23+
24+
25+\begin{tikzpicture}[label style/.style={font=\Huge}]
26+% \tkzSetUpPoint[shape = circle,color = red,%
27+% size = 18,fill = red!30]
28+
29+\tikzstyle{every node}=[font=\LARGE]
30+
31+
32+% \begin{scope}
33+% \fill [red] (0,0) rectangle (5,5);
34+% \end{scope}
35+
36+
37+
38+
39+% \fill [red] (0,0) rectangle (5,5);
40+
41+\draw [myarrows](-2.5,-1.4425) -- (5.5,-1.4425) ;
42+\draw [myarrows] (-2.5,-1.4425) -- (-2.5,6.6) ;
43+\draw [myarrows] (-2.5,-1.4425) -- (-8.2,-6.8) ;
44+
45+\draw [dashed, color=red, line width=.4mm] (-2.5,-1.4425) -- (4.775,2.757) ;
46+
47+
48+\draw [dashed, line width=.4mm] (-1,-0.577) -- (-1,-3) ;
49+
50+\draw [dashed, color=blue, line width=.4mm] (-1,-3) -- (-2.5,-1.4425) ;
51+
52+
53+\tkzDefPoint(4.775,2.757){P} \tkzLabelPoint[above right](P){$P$} ;
54+
55+
56+\tkzDefPoint(-2.5,3){z} \tkzLabelPoint[above right](z){$z$} ;
57+
58+
59+\tkzDefPoint(2.5,-2.1){x} \tkzLabelPoint[above right](x){$x$} ;
60+
61+
62+\tkzDefPoint(-5.3,-4.9){y} \tkzLabelPoint[above right](y){$y$} ;
63+
64+
65+
66+
67+\tkzDefPoint(-2.4,-.4){theta} \tkzLabelPoint[above right](theta){$\theta$} ;
68+ \tkzDefPoint(-1.75.,-2.38){phi} \tkzLabelPoint[above right](phi){$\phi$}
69+
70+
71+
72+\draw (4.775,2.757) circle (.1cm);
73+ \shade[ball color=black,opacity=1.0] (4.775,2.757) circle (.1cm);
74+
75+
76+
77+\draw [<->, color=red, line width =.4mm] (-1.5,-0.8655) arc (0:60:2cm) ;
78+
79+
80+
81+\draw [<->, color=blue,line width =.4mm] (-1.,-1.427) arc (0:-40:1.73cm) ;
82+
83+%\draw (-2.5,-1.4425) circle (9.813466cm);
84+% \shade[ball color=blue!10!white,opacity=0.20] (-2.5,-1.4425) circle (9.813466cm);
85+
86+\draw (-2.5,-1.4425) circle (8.4cm);
87+ \shade[ball color=blue!10!white,opacity=0.20] (-2.5,-1.4425) circle (8.4cm);
88+
89+ \draw [name path=c1] (-1,-3.5) arc (180:-180:1cm and 0.5cm);
90+ % \draw (-1,-3) arc (180:0:1cm and 0.5cm);
91+ \fill[ color=blue,opacity=0.30] (-1,-3.5) arc (180:-180:1cm and 0.5cm);
92+
93+ % \draw (0.732,-3) arc (180:360:1cm and 0.5cm);
94+ \draw[name path=c2] (0.732,-3.5) arc (180:-180:1cm and 0.5cm);
95+ \fill[ color=blue,opacity=0.30] (0.732,-3.5) arc (180:-180:1cm and 0.5cm);
96+
97+
98+ \draw[name path=c3] (2.464,-3.5) arc (180:-180:1cm and 0.5cm);
99+ % \draw (2.464,-3) arc (180:0:1cm and 0.5cm);
100+ \fill[ color=blue,opacity=0.30] (2.464,-3.5) arc (180:-180:1cm and 0.5cm);
101+
102+
103+
104+
105+%\begin{scope}
106+%\fill [name intersections={of=c1 and c2}]
107+% (intersection-1) circle (2pt) node[label=right:$A$] {};
108+%\end{scope}
109+
110+
111+\draw [<->, color=black, line width =.4mm] (-0,-3.5) -- (1.732,-3.5) ;
112+
113+\draw [->, color=black, line width =.4mm] (3.464,-3.5) -- (4,-3.95) ;
114+
115+
116+\draw (3.464,-3.5) circle (.07cm);
117+ \fill[color=black,opacity=1.0] (3.464,-3.5) circle (.07cm);
118+
119+\draw (1.732,-3.5) circle (.07cm);
120+ \fill[color=black,opacity=1.0] (1.732,-3.5) circle (.07cm);
121+
122+\draw (0,-3.5) circle (.07cm);
123+ \fill[color=black,opacity=1.0] (0,-3.5) circle (.07cm);
124+
125+\tkzDefPoint(2.5,-5.4){A} \tkzLabelPoint[above right](A){$A_{\cap}$} ;
126+
127+\draw [->, color=black, line width =.4mm] (2.6,-5.2) -- (2.6,-3.7) ;
128+
129+
130+% \begin{scope}
131+% \clip c1;
132+% \fill[red] c2;
133+% \end{scope}
134+
135+
136+
137+
138+
139+
140+
141+
142+
143+ \draw (-1,0) arc (180:360:1cm and 0.5cm);
144+ \draw[dashed] (-1,0) arc (180:0:1cm and 0.5cm);
145+ \draw (0,1) arc (90:270:0.5cm and 1cm);
146+ \draw[dashed] (0,1) arc (90:-90:0.5cm and 1cm);
147+ \draw (0,0) circle (1cm);
148+ \shade[ball color=blue!10!white,opacity=0.20] (0,0) circle (1cm);
149+
150+
151+ \draw (0.732,1) arc (180:360:1cm and 0.5cm);
152+ \draw[dashed] (0.732,1) arc (180:0:1cm and 0.5cm);
153+ \draw (1.732,2) arc (90:270:0.5cm and 1cm);
154+ \draw[dashed] (1.732,2) arc (90:-90:0.5cm and 1cm);
155+
156+
157+
158+\draw (1.732,1) circle (1cm);
159+ \shade[ball color=blue!10!white,opacity=0.20] (1.732,1) circle (1cm);
160+
161+
162+ \draw (2.464,2) arc (180:360:1cm and 0.5cm);
163+ \draw[dashed] (2.464,2) arc (180:0:1cm and 0.5cm);
164+ \draw (3.464,3) arc (90:270:0.5cm and 1cm);
165+ \draw[dashed] (3.464,3) arc (90:-90:0.5cm and 1cm);
166+
167+
168+\draw (3.464,2) circle (1cm);
169+ \shade[ball color=blue!10!white,opacity=0.20] (3.464,2) circle (1cm);
170+
171+\tkzDefPoint(0.27,-3.45){d} \tkzLabelPoint[above right](d){$d$} ;
172+
173+
174+\tkzDefPoint(3.6,-3.85){R1} \tkzLabelPoint[above right](R1){$R_1$} ;
175+
176+\end{tikzpicture}
177+
178+
179+
180+\end{document}