Update on Overleaf.

This commit is contained in:
uxwmp 2023-06-15 14:59:48 +00:00 committed by node
parent 2a00e92d0f
commit 2b23c95228
4 changed files with 60 additions and 72 deletions

View file

@ -1,8 +1,3 @@
\documentclass[margin=5mm, tikz]{standalone}
\usepackage{tikz, ifthen, calc}
\begin{document}
\begin{tikzpicture}
\def\raynum{120}
@ -10,9 +5,9 @@
\foreach \x in {0,...,\raynum} {
\ifthenelse{\x < 20 \OR \x>100}
{
\draw[color = red] (\x /\raynum * 6 ,0) -- (3,4);
\draw[color = kit-blue100] (\x /\raynum * 6 ,0) -- (3,4);
}{
\draw[color = green] (\x /\raynum * 6 ,0) -- (3,4);
\draw[color = kit-green100] (\x /\raynum * 6 ,0) -- (3,4);
}
}
@ -22,13 +17,13 @@
] (1.49,1) -- (4.51,1) -- (5.01,0) -- (0.99,0) -- cycle;
\draw [color=red] (0,0) -- node[below]{wall} (6,0) ; % wall
\draw [color=green](1.5,1) -- node[below]{blocker} (4.5,1); %blocker
\draw [color=kit-blue100] (0,0) -- node[below]{wall} (6,0) ; % wall
\draw [color=kit-green100](1.5,1) -- node[below]{blocker} (4.5,1); %blocker
%cam
\node[
circle,
fill = black,
fill = kit-gray100,
minimum width = 1mm,
outer sep = 2mm
] (camera) at (3,4) {};
@ -36,5 +31,3 @@
\end{tikzpicture}
\end{document}

View file

@ -0,0 +1,51 @@
\begin{center}
\begin{minipage}{0.4\linewidth}
\begin{figure}
\centering
\begin{minipage}{0.5\linewidth}
\begin{tikzpicture}[domain=-0.5:2]
\draw[very thin,color=gray] (-0.1,-0.6) grid (2.1,2.1);
\draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$};
\draw[->] (0,-0.7) -- (0,2.2) node[above] {$V(x,\omega)$};
\draw (0,0) -- (1,0) plot coordinates {(0,0) (1,0)}[color=red];
\draw (1,1) -- (2,1) plot coordinates {(1,1) (2,1)}[color=red];
\draw (0,0) node[left] {$0$};
\draw (0,1) node[left] {$1$};
\draw (1,-0.7) node[below] {$\omega_0$};
\end{tikzpicture}
\end{minipage}
\hspace{3mm}
\begin{minipage}{0.4\linewidth}
\caption{Visibility of a point $x$ with respect to $\omega$. Observe the discontinuity at $\omega_0$.}
\label{fig:visibility}
\end{minipage}
\end{figure}
\end{minipage}
% second diagram
\begin{minipage}{0.5\linewidth}
\begin{figure}
\centering
\begin{minipage}{0.5\linewidth}
\begin{tikzpicture}[domain=-0.5:2]
\draw[very thin,color=gray] (-0.1,-0.6) grid (2.1,2.1);
\draw[->] (-0.2,-0.5) -- (2.2,-0.5) node[right] {$\omega$};
\draw[->] (0,-0.7) -- (0,2.2) node[above] {$\frac{\partial}{\partial\omega}V(x,\omega)$};
\draw (0,0) -- (2,0) plot coordinates {(0,0) (2,0)}[color=red];
\draw (0,0) node[left] {$0$};
\draw (0,1) node[left] {$1$};
\draw (0,2) node[left] {$\infty$};
\draw (1,2) node[color=red] {$\bullet$};
\draw (1,-0.7) node[below] {$\omega_0$};
\end{tikzpicture}
\end{minipage}
\begin{minipage}{0.4\linewidth}
\caption{Differentiation of the left graph with respect to $\omega$. Observe the discontinuity at $\omega_0$ in the left graph leading to a dirac delta spike at $\omega_0$ in the differentiation.}
\label{fig:dirac-delta-spike}
\end{minipage}
\end{figure}
\end{minipage}
\end{center}