-
Notifications
You must be signed in to change notification settings - Fork 33
how to increase png resolution with altair.renderers.enable("png") #75
Comments
Facing the same. Installed using the |
Try |
specify the width and height using the properties I hope it helps. altair_saver.save(bars.properties(width=800, height=400), "plot.png", vega_cli_options=["-s 4"]) |
This seems to work when using notebooks without having to use the
|
Since Altair 5.2, the functionality of Altair Saver is now available in Altair via the vl-convert package. Most of the functionality has been available since 5.0, and the main addition in 5.2 was PDF export. See the docs on how to save charts for more details. This includes how to set the resolution https://altair-viz.github.io/user_guide/saving_charts.html#png-figure-size-resolution We are going to archive this repo, so I'm closing all the open issues and PRs before doing so. Try out the new options for saving charts mentioned above and if you run into issues, please open an issue directly in the altair or vl-convert repo. |
I'm using altair in a notebook, I tried
it doesn't seem to have any effect on the resolution of the generated png. What's the right way to do so, please?
The text was updated successfully, but these errors were encountered: