How to proportionally scale Lilaq diagram? (fixed aspect ratio)

In How to reproduce a stress diagram image in Typst? - #7 by Andrew, I faced an issue of diagram scaling. I thought I can set only width and height will adjust automatically, but it doesn’t. So I had to move out x/y max coordinate and use ratio to get absolute height length. Surely I can easily scale the diagram and preserve the grid squares?

Hi, so what you basically want to achieve is a fixed aspect ratio? If we can find an appropriate syntax for that, we could work on this feature!

Maybe you could post a feature request?

1 Like