I am using the same css with containers defined and I like the autoscaling of the figure width depending on the desktop it runs at. What I am wondering though is, whether I can change the height of the figure depending on the auto-detected width?
Some figures of mine need a certain aspect ratio for their height:width.
Any idea on how to do that?
If that doesn’t work, I would like to manually set the width and height, and then center the figure somehow.
If you need a fixed aspect ratio because it has meaning in your data, then you can use scaleanchor and scaleratio, which will keep the yaxis a certain proportion of the xaxis.