Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (21 sloc) 974 Bytes
\documentclass[tikz,convert=false]{standalone}
\usetikzlibrary{paths.ortho,backgrounds}
\def\foreachfour{\foreach \pos in {0,.125,.25,.5,.75,.875,1}{node[pos=\pos] {\pos}}}
\def\foreachthree{\foreach \pos in {0,.1666,.3333,.5,.6667,.8333,1}{node[pos=\pos] {\pos}}}
\def\foreachzero{\foreach \pos in {-1,-.5,0,.5,1,1.5,2}{node[pos=\pos] {\pos}}}
\begin{document}
\foreach \Ratio in {0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1,.9,.8,.7,.6,.5,.4,.3,.2,.1}{
\begin{tikzpicture}[hvvh/ratio/.expanded=\Ratio,show background grid]
\node[opacity=0] at (8,0) {.3333};
\draw (1,1) |-| ++(3,4) \foreachfour;
\draw[blue] (5,1) -|- ++(3,4) \foreachfour;
\scope[yshift=-5cm,hvvh/spacing=3]
\draw (1,1) |-| ++(3,4) \foreachthree;
\draw[blue] (5,1) -|- ++(3,4) \foreachthree;
\endscope
\scope[yshift=-10cm,hvvh/spacing=0]
\draw (1,1) |-| ++(3,4) \foreachzero;
\draw[blue] (5,1) -|- ++(3,4) \foreachzero;
\endscope
\end{tikzpicture}}
\end{document}
You can’t perform that action at this time.