-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathback2zero.tex
More file actions
49 lines (41 loc) · 1.23 KB
/
back2zero.tex
File metadata and controls
49 lines (41 loc) · 1.23 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%%-*-latex-*-
\documentclass[11pt]{article}
\usepackage{pst-plot,pst-eps}
\input{commands}
\begin{document}
\TeXtoEPS
\begin{pspicture}[showgrid=false](1,-1)(-7,3)
\psaxes[axesstyle=axes,tickstyle=bottom,labels=none]{->}(0,0)(-7,3)
\psset{linewidth=0.1pt}
\psaxes[axesstyle=none,tickstyle=top,labels=none,ticks=x,ticksize=3](-7,3)
\psaxes[axesstyle=none,tickstyle=top,labels=none,ticks=y,ticksize=7](-7,3)(0,0)
\psset{linewidth=0.4pt}
\psline(0,0)(0.15,0)
\uput[180]{0}(0.6,0){0}
\psline(0,1)(0.15,1)
\uput[180]{0}(0.6,1){1}
\psline(0,2)(0.15,2)
\uput[180]{0}(0.6,2){2}
\uput[180]{0}(0.6,3){3}
\uput[180]{90}(1.1,1.5){version length}
\uput[180]{0}(0.1,-0.3){\fun{push}}
\uput[180]{0}(-0.9,-0.3){\fun{push}}
\uput[180]{0}(-2,-0.33){\fun{pop}}
\uput[180]{0}(-3,-0.33){\fun{pop}}%push
\uput[180]{0}(-3.9,-0.3){\fun{push}}
\uput[180]{0}(-4.9,-0.3){\fun{push}}
\uput[180]{0}(-6,-0.33){\fun{pop}}
\uput[180]{0}(-2.75,-0.8){update}
\psset{linewidth=1pt}
\psline(0,0)(-2,2)(-4,0)(-6,2)
\psline{-*}(-6,2)(-7,1)
\rput{-45}(-0.35,0.6){\(1\)}
\rput{-45}(-1.34,1.6){\(2\)}
\rput{45}(-2.65,1.62){\(2\)}
\rput{45}(-3.65,0.62){\(1\)}
\rput{-45}(-4.3,0.6){\(3\)}
\rput{-45}(-5.35,1.65){\(4\)}
\rput{45}(-6.65,1.62){\(4\)}
\end{pspicture}
\endTeXtoEPS
\end{document}