score:1

vega-lite and altair don't have an aspect argument or set_aspect method like in matplotlib. i had a same question earlier this week and this is the answer that i got from one of the devs;

it’s definitely possible to change the width/height of a figure, which is almost the same thing see https://altair-viz.github.io/gallery/aggregate_bar_chart.html for an example

so as long as your width and height have the same value then by default the aspect will also be equal.


Related Query

More Query from same tag