-
Notifications
You must be signed in to change notification settings - Fork 47
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
Option to save plots to PDF format using ggsave()
#710
Comments
Sure, that would be a good featue. Meanwhile, you can try using CairoSVG for SVG --> PDF conversion:
AFAIK, there should be no issues with fonts as long as the font you needed is installed in your system. |
Thanks. I am not being able yo get |
Could you describe this problem, please? What environment are you using and what errors do you get? |
Sure. I am creating the first plot described in the documentations here.
svg plot is created correctly but when
I am on Windows and using VS Code as an editor. I have created a poetry environment and the content of the
|
You can resolve this problem by installing the missing dependencies on your Windows. In my case the GTK3 Runtime for Windows package helped. You can try this solution or find a better one for you. |
I tried to save plots through It shows warnings like
about some fonts, and lost plot titles. But still save PDF somehow. Here comparison of an original plot with different fonts and its PDF-version: |
Option added in v4.1.0 |
Would it be possible to directly save PDF output from
ggsave()
? It would be nice to be able to save a plot mosaic (made usinggggrid()
) in PDF output, with option to specify dimensions. Maybe there is some straightforward way for going from SVG to PDF but somehow it's a bit difficult to manage fonts sometimes? I am new at usinglets-plot
for python, so I might be missing something obvious...The text was updated successfully, but these errors were encountered: