1
0

Copy files into public version.

sio #	new file:   charts/example_2_dag/Makefile
This commit is contained in:
2022-05-26 01:32:07 -07:00
commit c7fa348220
41 changed files with 3460 additions and 0 deletions

12
charts/example_2_dag/.gitignore vendored Normal file
View File

@@ -0,0 +1,12 @@
/auto/
/vc
/refs-processed.bib
/*.aux
/*.bbl
/*.blg
/*.log
/*.out
/*.pdf
/*.fdb_latexmk
/*.fls
/*.ttt

View File

@@ -0,0 +1,28 @@
#!/usr/bin/make
all: $(patsubst %.tex,%.svg,$(wildcard *.tex)) $(patsubst %.tex,%.png,$(wildcard *.tex))
%.png: %.pdf
convert -density 300 -transparent white $< $@
%.svg: %.pdf
/usr/bin/inkscape $< --export-plain-svg=$@
%.pdf: %.tex
latexmk -f -pdf $<
clean:
latexmk -C *.tex
rm -f *.tmp
rm -f vc
rm *.svg
viewpdf: all
evince *.pdf
vc:
vc-git
pdf: all
.PHONY: clean all

View File

@@ -0,0 +1,47 @@
\documentclass[12pt]{standalone}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\renewcommand{\rmdefault}{ugm}
\renewcommand{\sfdefault}{phv}
\usepackage[garamond]{mathdesign}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes, arrows, shadows}
\begin{document}
\tikzset{>=latex}
\begin{tikzpicture}[
observed/.style={circle, draw},
partly observed/.style 2 args={draw, fill=#2, path picture={
\fill[#1, sharp corners] (path picture bounding box.south west) -|
(path picture bounding box.north east) -- cycle;},
circle},
unobserved/.style={draw, circle, fill=gray!40}
]
\node[observed] (y) {Y};
\node[observed,above=of y, xshift=1cm] (r) {R};
\node[partly observed={white}{gray!40}, left=of r] (x) {X};
\node[observed, left=of x] (w) {W};
\node[unobserved, above=of w, xshift=1cm] (k) {K};
\matrix [draw, below, yshift=-0.2cm, font=\small, align=center, column sep=2\pgflinewidth, inner sep=0.6em, outer sep=0em, nodes={align=center, anchor=center}] at (current bounding box.south){
\node[observed,label=right:observed] {}; \\
\node[unobserved,label=right:unobserved]{}; \\
};
\draw[->] (r) -- (y);
\draw[->] (r) -- (x);
\draw[->] (x) -- (y);
\draw[->] (x) -- (w);
\draw[->] (k) -- (x);
\draw[->] (k) -- (w);
\end{tikzpicture}
\end{document}