Ian Jauslin
summaryrefslogtreecommitdiff
path: root/figs
diff options
context:
space:
mode:
authorIan Jauslin <jauslin@ias.edu>2018-05-18 22:53:34 +0000
committerIan Jauslin <jauslin@ias.edu>2018-05-18 22:53:34 +0000
commit06e19c0db24d4c527f82ed934ecb56228ea0aee8 (patch)
treeff988087ebcbe1815c1fc2b7cb7faf026c770baa /figs
Initial commitv0.0
Diffstat (limited to 'figs')
-rw-r--r--figs/libs/Makefile27
-rw-r--r--figs/libs/grid.sty24
l---------figs/peel.fig/Makefile1
l---------figs/peel.fig/libs/grid.sty1
-rw-r--r--figs/peel.fig/peel.tikz.tex21
-rw-r--r--figs/phase_diag.fig/Makefile23
-rw-r--r--figs/phase_diag.fig/phase_diag.gnuplot44
l---------figs/plates.fig/Makefile1
-rw-r--r--figs/plates.fig/plates.tikz.tex87
l---------figs/sampling_cube.fig/Makefile1
-rw-r--r--figs/sampling_cube.fig/sampling_cube.tikz.tex18
l---------figs/smeared_contour2.fig/Makefile1
l---------figs/smeared_contour2.fig/libs/grid.sty1
-rw-r--r--figs/smeared_contour2.fig/smeared_contour2.tikz.tex36
14 files changed, 286 insertions, 0 deletions
diff --git a/figs/libs/Makefile b/figs/libs/Makefile
new file mode 100644
index 0000000..4cabe06
--- /dev/null
+++ b/figs/libs/Makefile
@@ -0,0 +1,27 @@
+PROJECTNAME=$(basename $(basename $(wildcard *.tikz.tex)))
+LIBS=$(notdir $(wildcard libs/*))
+
+PDFS=$(addsuffix .pdf, $(PROJECTNAME))
+
+all: $(PDFS)
+
+$(PDFS): $(LIBS)
+ pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
+
+install: $(PDFS)
+ cp $^ $(INSTALLDIR)/
+
+$(LIBS):
+ ln -fs libs/$@ ./
+
+clean-libs:
+ rm -f $(LIBS)
+
+clean-aux:
+ rm -f $(addsuffix .aux, $(PROJECTNAME))
+ rm -f $(addsuffix .log, $(PROJECTNAME))
+
+clean-tex:
+ rm -f $(PDFS)
+
+clean: clean-libs clean-aux clean-tex
diff --git a/figs/libs/grid.sty b/figs/libs/grid.sty
new file mode 100644
index 0000000..495bc80
--- /dev/null
+++ b/figs/libs/grid.sty
@@ -0,0 +1,24 @@
+% light gray color
+\definecolor{lightgray}{gray}{0.7}
+
+% a grid with starting from #1 mesh #2 of width #3*#2 and height #4*#2
+\def\grid#1#2#3#4{
+ % vertical lines
+ \foreach\i in{0,...,#3}{
+ \draw[color=lightgray]#1++(\i*#2,0)--++(0,#4*#2);
+ }
+ % horizontal lines
+ \foreach\j in{0,...,#4}{
+ \draw[color=lightgray]#1++(0,\j*#2)--++(#3*#2,0);
+ }
+}
+
+% a square centered at #1 of side #2
+\def\square#1#2{
+ \draw#1++(-0.5*#2,-0.5*#2)--++(#2,0)--++(0,#2)--++(-#2,0)--cycle;
+}
+
+% fill a square centered at #1 of side #2 and color #3
+\def\fillsquare#1#2#3{
+ \fill[color=#3]#1++(-0.5*#2,-0.5*#2)--++(#2,0)--++(0,#2)--++(-#2,0)--cycle;
+}
diff --git a/figs/peel.fig/Makefile b/figs/peel.fig/Makefile
new file mode 120000
index 0000000..704310e
--- /dev/null
+++ b/figs/peel.fig/Makefile
@@ -0,0 +1 @@
+../libs/Makefile \ No newline at end of file
diff --git a/figs/peel.fig/libs/grid.sty b/figs/peel.fig/libs/grid.sty
new file mode 120000
index 0000000..4859238
--- /dev/null
+++ b/figs/peel.fig/libs/grid.sty
@@ -0,0 +1 @@
+../../libs/grid.sty \ No newline at end of file
diff --git a/figs/peel.fig/peel.tikz.tex b/figs/peel.fig/peel.tikz.tex
new file mode 100644
index 0000000..8d7f599
--- /dev/null
+++ b/figs/peel.fig/peel.tikz.tex
@@ -0,0 +1,21 @@
+\documentclass{standalone}
+\usepackage{tikz}
+\usepackage{grid}
+
+\begin{document}
+\begin{tikzpicture}
+ \fillsquare{(0,0.5)}5{red}
+ \fillsquare{(0,-0.5)}5{red}
+ \fillsquare{(3,2.5)}5{red}
+ \fillsquare{(3,3.5)}5{red}
+ \fillsquare{(6,2.5)}5{red}
+ \fillsquare{(6,3.5)}5{red}
+
+ \fillsquare{(0,0)}4{cyan}
+ \fillsquare{(3,3)}4{cyan}
+ \fillsquare{(6,3)}4{cyan}
+
+ \grid{(-3,-3.5)}{0.5}{24}{20}
+\end{tikzpicture}
+\end{document}
+
diff --git a/figs/phase_diag.fig/Makefile b/figs/phase_diag.fig/Makefile
new file mode 100644
index 0000000..9e60404
--- /dev/null
+++ b/figs/phase_diag.fig/Makefile
@@ -0,0 +1,23 @@
+PROJECTNAME=$(basename $(wildcard *.gnuplot))
+
+PDFS=$(addsuffix .pdf, $(PROJECTNAME))
+
+all: $(PDFS)
+
+$(PDFS):
+ gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tikz.tex, $@)
+ pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
+
+install: $(PDFS)
+ cp $^ $(INSTALLDIR)/
+
+
+clean-aux:
+ rm -f $(addsuffix .tikz.tex, $(PROJECTNAME))
+ rm -f $(addsuffix .aux, $(PROJECTNAME))
+ rm -f $(addsuffix .log, $(PROJECTNAME))
+
+clean-pdf:
+ rm -f $(PDFS)
+
+clean: clean-aux clean-pdf
diff --git a/figs/phase_diag.fig/phase_diag.gnuplot b/figs/phase_diag.fig/phase_diag.gnuplot
new file mode 100644
index 0000000..19ed9a4
--- /dev/null
+++ b/figs/phase_diag.fig/phase_diag.gnuplot
@@ -0,0 +1,44 @@
+# to output to tikz
+# default output canvas size: 12.5cm x 8.75cm
+set term lua tikz standalone
+
+# parameter: k
+k=2
+
+# ranges
+set xrange[0:1]
+set yrange [:1./k]
+
+# label x axis
+set xlabel "$\\alpha$"
+set xtics 0,0.25
+set xtics nomirror
+
+# no y axis
+unset ytics
+set ylabel "density"
+
+# no keu
+set key off
+
+# label phases
+set object 1 circle at 0.15,0.18 size 0.03
+set label "$I$" at 0.15,0.18 center
+set object 2 circle at 0.15,0.31 size 0.03
+set label "$N_+$" at 0.15,0.31 center
+set object 3 circle at 0.83,0.21 size 0.03
+set label "$N_-$" at 0.83,0.21 center
+set object 4 circle at 0.50,0.30 size 0.03
+set label "$N_b$" at 0.50,0.30 center
+set object 5 circle at 0.50,0.21 size 0.03
+set label "?" at 0.50,0.21 center
+
+# set linestyle 1
+set style line 1 linetype rgbcolor "#000000" linewidth 2
+
+plot \
+ k**(-1-x) with filledcurves above x2 fillcolor rgbcolor "#999999", \
+ k**(-1-x) with lines linestyle 1, \
+ k**(-2-x) with lines linestyle 1, \
+ k**(-2) with lines linestyle 1, \
+ k**(-1-2*x) with lines linestyle 1
diff --git a/figs/plates.fig/Makefile b/figs/plates.fig/Makefile
new file mode 120000
index 0000000..704310e
--- /dev/null
+++ b/figs/plates.fig/Makefile
@@ -0,0 +1 @@
+../libs/Makefile \ No newline at end of file
diff --git a/figs/plates.fig/plates.tikz.tex b/figs/plates.fig/plates.tikz.tex
new file mode 100644
index 0000000..f8b821c
--- /dev/null
+++ b/figs/plates.fig/plates.tikz.tex
@@ -0,0 +1,87 @@
+\documentclass{standalone}
+\usepackage{tikz}
+
+% a global rescaling factor
+\def\rescale{0.6}
+
+% length of the axes
+\def\axeslength{\rescale*3}
+% width, length and height of a plate
+\def\w{\rescale*2.5}
+\def\l{\rescale*4}
+\def\h{\rescale*0.2}
+
+% space between figures
+\def\interlen{\rescale*8}
+% offset of the label of each figure
+\def\labeloffsetx{\rescale*2}
+\def\labeloffsety{\rescale*3}
+
+% factor by which to multiply lengths to get depths
+\def\rotx{0.5*0.5}
+\def\roty{0.5*0.866}
+
+% draw a plate at #1 of width #2, length #3 and height #4
+\def\plate#1#2#3#4{
+\def\width{#2}
+\def\length{#3}
+\def\height{#4}
+
+% the center
+\path#1coordinate(O);
+
+% draw first half of axes
+\draw(O)++(-\axeslength,0)--(O);
+\path(O)++(\rotx*\axeslength,\roty*\axeslength)coordinate(t);
+\draw[->](O)++(\rotx*0.5*\width,\roty*0.5*\width)--(t);
+\draw(O)++(0,-\axeslength)--(O);
+
+% define points
+\path(O)++(-0.5*\length,-0.5*\height)++(-0.5*\rotx*\width,-0.5*\roty*\width)coordinate(A);
+\path(A)++(\length,0)coordinate(B);
+\path(B)++(\rotx*\width,\roty*\width)coordinate(C);
+\path(C)++(-\length,0)coordinate(D);
+\path(D)++(0,\height)coordinate(E);
+\path(E)++(-\rotx*\width,-\roty*\width)coordinate(F);
+\path(F)++(\length,0)coordinate(G);
+\path(G)++(\rotx*\width,\roty*\width)coordinate(H);
+
+% fill and stroke the plate (covers part of the axes)
+\fill[color=white](A)--(B)--(C)--(H)--(E)--(F)--(A);
+\draw(A)--(B)--(C)--(H)--(E)--(F)--(G)--(H);
+\draw(A)--(F);
+\draw(B)--(G);
+
+% draw the second half of the axes after having filled the plate
+\path(O)++(\axeslength,0)coordinate(t);
+\draw[->](O)++(0.5*\length,0)--(t);
+\path(O)++(-\rotx*0.5*\width,-\roty*0.5*\width)coordinate(t);
+\draw(O)++(-\rotx*\axeslength,-\roty*\axeslength)--(t);
+\path(O)++(0,\axeslength)coordinate(t);
+\draw[->](O)++(0,0.5*\height)--(t);
+}
+
+\begin{document}
+\begin{tikzpicture}
+
+% 3a
+\plate{(0,0)}{\w}{\l}{\h}
+\path(-\labeloffsetx,\labeloffsety)node{$3_a$};
+% 3b
+\plate{(\interlen,0)}{\l}{\w}{\h}
+\path(\interlen,0)++(-\labeloffsetx,\labeloffsety)node{$3_b$};
+% 1a
+\plate{(2*\interlen,0)}{\l}{\h}{\w}
+\path(2*\interlen,0)++(-\labeloffsetx,\labeloffsety)node{$1_a$};
+% 1b
+\plate{(0,-\interlen)}{\w}{\h}{\l}
+\path(0,-\interlen)++(-\labeloffsetx,\labeloffsety)node{$1_b$};
+% 2a
+\plate{(\interlen,-\interlen)}{\h}{\w}{\l}
+\path(\interlen,-\interlen)++(-\labeloffsetx,\labeloffsety)node{$2_a$};
+% 2b
+\plate{(2*\interlen,-\interlen)}{\h}{\l}{\w}
+\path(2*\interlen,-\interlen)++(-\labeloffsetx,\labeloffsety)node{$2_b$};
+
+\end{tikzpicture}
+\end{document}
diff --git a/figs/sampling_cube.fig/Makefile b/figs/sampling_cube.fig/Makefile
new file mode 120000
index 0000000..704310e
--- /dev/null
+++ b/figs/sampling_cube.fig/Makefile
@@ -0,0 +1 @@
+../libs/Makefile \ No newline at end of file
diff --git a/figs/sampling_cube.fig/sampling_cube.tikz.tex b/figs/sampling_cube.fig/sampling_cube.tikz.tex
new file mode 100644
index 0000000..a7baf3e
--- /dev/null
+++ b/figs/sampling_cube.fig/sampling_cube.tikz.tex
@@ -0,0 +1,18 @@
+\documentclass{standalone}
+\usepackage{tikz}
+
+\begin{document}
+\begin{tikzpicture}
+ \fill[color=cyan](0,0)--++(2,0)--++(1,0.8)--++(0,2)--++(-2,0)--++(-1,-0.8);
+ \fill[color=red](0,0)--++(0,1)--++(1,0)--++(0,-1);
+
+ \draw(0,0)--++(2,0)--++(0,2)--++(-2,0)--cycle;
+ \draw(2,0)--++(1,0.8)--++(0,2)--++(-2,0)--++(-1,-0.8);
+ \draw(2,2)--++(1,0.8);
+
+ \draw(1,0)--++(0,2)--++(1,0.8);
+ \draw(0,1)--++(2,0)--++(1,0.8);
+ \draw(0,2)++(0.5,0.4)--++(2,0)--++(0,-2);
+\end{tikzpicture}
+\end{document}
+
diff --git a/figs/smeared_contour2.fig/Makefile b/figs/smeared_contour2.fig/Makefile
new file mode 120000
index 0000000..704310e
--- /dev/null
+++ b/figs/smeared_contour2.fig/Makefile
@@ -0,0 +1 @@
+../libs/Makefile \ No newline at end of file
diff --git a/figs/smeared_contour2.fig/libs/grid.sty b/figs/smeared_contour2.fig/libs/grid.sty
new file mode 120000
index 0000000..4859238
--- /dev/null
+++ b/figs/smeared_contour2.fig/libs/grid.sty
@@ -0,0 +1 @@
+../../libs/grid.sty \ No newline at end of file
diff --git a/figs/smeared_contour2.fig/smeared_contour2.tikz.tex b/figs/smeared_contour2.fig/smeared_contour2.tikz.tex
new file mode 100644
index 0000000..0bd4012
--- /dev/null
+++ b/figs/smeared_contour2.fig/smeared_contour2.tikz.tex
@@ -0,0 +1,36 @@
+\documentclass{standalone}
+\usepackage{tikz}
+\usepackage{grid}
+
+\begin{document}
+\begin{tikzpicture}
+
+% the positions of the smoothing cubes
+\def\smoothingsquares{(0,0),(4,4),(-4,0),(-4,4),(-8,4),(-4,8),(0,12),(4,8),(12,12),(12,8),(16,4)}
+% the positions of the bad cubes
+\def\badsquares{(-0.5,0),(-1.5,0),(-2,0),(-0.5,0.5),(-1.5,0.5),(-2,0.5),(-7,4.5),(-7,5.5),(-6,4.5),(-6,5.5),(-5.5,5.5),(-5.5,5),(-5,7.5),(-5.5,7.5),(-5.5,8),(-5,8),(0,10.5),(-0.5,10.5),(0,11),(-0.5,11),(3.5,5.5),(4,5.5),(4,6),(3.5,6),(10.5,8.5),(10.5,9.5),(10.5,10.5),(10.5,11.5),(10.5,12),(11.5,12),(12.5,12),(12.5,11),(12.5,10),(12,9),(11.5,8.5),(12,9.5),(15,4),(16,4),(16,3),(15,3)}
+
+% first fill the smearings
+\foreach\pos in\smoothingsquares{
+ \fillsquare{\pos}5{blue}
+}
+
+% fill the smoothing cubes
+\foreach\pos in\smoothingsquares{
+ \fillsquare{\pos}4{gray}
+}
+% fill the bad cubes
+\foreach\pos in\badsquares{
+ \fillsquare{\pos}{1}{green}
+}
+
+% draw grid
+\grid{(-11,-3)}{0.5}{60}{36}
+
+% stroke the smoothing squares
+\foreach\pos in\smoothingsquares{
+ \square{\pos}4
+}
+
+\end{tikzpicture}
+\end{document}