Fix figure Stimtac
authorThomas Pietrzak <thomas.pietrzak@gmail.com>
Tue, 4 Apr 2023 08:58:43 +0000 (10:58 +0200)
committerThomas Pietrzak <thomas.pietrzak@gmail.com>
Tue, 4 Apr 2023 08:58:43 +0000 (10:58 +0200)
figures/stimtacpatterns.tex

index 32fd77b1957657e9ccb3eb4ffb57923980cf6272..f436f0b558d76fcfca89a474d52efd39835ee4b3 100644 (file)
         \pgfmathsetmacro{\nb}{4^\i - 1}
         \pgfmathsetmacro{\maxrow}{2^(\i+1)}
         \foreach \j in {0,...,\nb} {
-          \pgfmathsetmacro{\px}{int(Mod(\j * 2, \maxrow)) * \d}
+          \pgfmathsetmacro{\posx}{int(Mod(\j * 2, \maxrow)) * \d}
           \pgfmathsetmacro{\ry}{int(\j * 2/ \maxrow)}
-          \pgfmathsetmacro{\py}{\ry * \d}
+          %\pgfmathsetmacro{\posy}{\ry * \d}
           \pgfmathsetmacro{\res}{int(Mod(\ry, 2))}
           \ifthenelse{\res = 0}{
-            \fill[color=myblue] (\px,\dy-\py) rectangle ++(\d,-\d);
+            \fill[color=myblue] (\posx,\dy-\ry*\d) rectangle ++(\d,-\d);
           }{
-            \fill[color=myblue] (\d+\px,\dy-\py) rectangle ++(\d,-\d);
+            \fill[color=myblue] (\d+\posx,\dy-\ry*\d) rectangle ++(\d,-\d);
           }
         }
         \draw[x=\scale,y=\scale,color=black] (0,0) rectangle (\dx,\dy);