Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Implement a dpi option. #588

Closed
Datseris opened this issue Apr 29, 2020 · 6 comments
Closed

[FR] Implement a dpi option. #588

Datseris opened this issue Apr 29, 2020 · 6 comments
Labels
enhancement Feature requests and enhancements

Comments

@Datseris
Copy link
Contributor

Would be very nice to get a dpi argument to Makie.save.

Makie.save("static_billiard_plot.png", scene, dpi = 600)

doesn't work. But it is really a big pain to simple "increase the resolution of the scene", because I must manually adjust every single text size.

And if not, when I save it into file it really looks crappy at low resolutions...

@jkrumbiegel
Copy link
Member

if your plot is 2d, cairomakie should be able to handle it now, and it has the argument px_per_unit for png scaling and pt_per_unit for vector scaling. Can you try that?

@Datseris
Copy link
Contributor Author

Datseris commented May 1, 2020

Sure, I will try it at night, thanks for letting me know. To switch backends do I simply write using CairoMakie after using Makie?

@asinghvi17
Copy link
Member

asinghvi17 commented May 1, 2020

Yep, that should be sufficient. You can switch between backends by using CairoMakie.activate!() or GLMakie.activate!().

@asinghvi17
Copy link
Member

We just released a new version of CairoMakie, by the way - so you should be sure to upgrade before you try this out. (It fixes a bunch of things related to markers...)

@asinghvi17 asinghvi17 added the enhancement Feature requests and enhancements label May 3, 2020
@liuyxpp
Copy link

liuyxpp commented Aug 18, 2021

if your plot is 2d, cairomakie should be able to handle it now, and it has the argument px_per_unit for png scaling and pt_per_unit for vector scaling. Can you try that?

Can you give an example how to use pt_per_unit? What does pt_per_unit mean? Thanks!

@SimonDanisch
Copy link
Member

px_per_unit is now supported for all backends as of #3113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests and enhancements
Projects
None yet
Development

No branches or pull requests

5 participants