Never mind - I found the "aspect" option:
'title Regular Unit Hexagon Centered at Origin;type line;pensize 2; aspect
0.87' plot (],{.) j./"1 hexCorners
On Sun, Feb 7, 2021 at 3:28 PM Devon McCormick <[email protected]> wrote:
> I'm trying to draw a unit hexagon centered at the origin with the
> horizontal sides parallel to the X-axis. I've come up with these
> co-ordinates for the corners but when I plot them, the drawing looks a
> little too wide:
>
> hexCorners=. _2]\,0.537285 0 0.268642 0.465302 _0.268642 0.465302
> _0.537285 0 _0.268642 _0.465302 0.268642 _0.465302
> 'title Regular Unit Hexagon Centered at Origin;type line;pensize 2'
> plot (],{.) j./"1 hexCorners
>
> I can use my paint program to distort a picture of this plot until it
> looks like it has a square aspect ratio (roughly, width height * 0.92 1.06)
> but how can I plot this with the correct aspect ratio in the first place?
>
> --
>
> Devon McCormick, CFA
>
> Quantitative Consultant
>
>
--
Devon McCormick, CFA
Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm