Consider the following snippet:
DynamicModule[{},
Manipulate[
Graphics[
Translate[
GeometricTransformation[
{Blue, Polygon[{{0, 0}, {1, 0}, {1, 1}, {0, 1}}]},
{{scx, 0}, {0, scy}}],
Tuples[{Range[wi], Range[he]}] - 1]],
{{scx, 1, "x scale"}, 0, 1},
{{scy, 1, "y scale"}, 0, 1},
{{wi, 1, "width"}, 1, 5, 1},
{{he, 1, "heigth"}, 1, 5, 1}]]
I want a stable, fixed, panel in which the polygons are displayed, thus independent from the slider values. Applying the PlotRange-> option
to the Graphics
function in the example above doesn't work as expected.
Question: How should I set and fix the panel size?
Affine transform {{0, 0}, {0, 1}, {0, 2}, {0, 3}, {0, 4}, {1, 0}, {1, 1}, {1, 2}, {1, 3}, {1, 4}} should be one of the forms {{{xx, yx}, {xy, yy}}, {tx, ty}}; {{xx, yx}, {yy, yy}}; or {tx, ty}.
$\endgroup$width
andheight
all the way to the left, and usePlotRange -> {{-1, 2}, {-1, 2}}
thex
andy
sliders appear stable. $\endgroup$Tuples[{Range[wi], Range[he]}]
? The output doesn't appear to match the syntax ofTranslate
. $\endgroup$Translate[gr, #]& /@ (Tuples[...] - 1)
. $\endgroup$