I have a Voronoi mesh, given by
L1 = 5; L2 = 5; ar = Automatic;
pts = Flatten[Table[{3/2 i, Sqrt[3] j + Mod[i, 2] Sqrt[3]/2}, {i, L2}, {j, L1}],1] // N;
mesh = VoronoiMesh[pts, AspectRatio -> ar]
If instead we set the aspect ratio ar = 1
, we get
which is slightly different. This makes sense since AspectRatio
is with respect to the image box size.
My goal is to scale this first image in the horizontal (or vertical) direction by a factor scale
. At first I thought about using something like AspectRatio -> scale
, but it doesn't work because of the Automatic
inconsistency. Any ideas around this? Ideally I would like scale = 1
to correspond to the first image, and then stretch the image from here.
I know about Scale
and Scaled
for a Graphics
object, so maybe I could convert the mesh to a Graphics
object? Any ideas?
This is a sketch of what I want