Replies: 3 comments 1 reply
-
|
That error is getting raised because starplot hardcodes the value for Although Starplot can export to PDF, I'd recommend exporting to PNG or SVG and then importing the result into some desktop publishing software (e.g. MS Word, Pages, InDesign, Affinity Publisher, etc) to create the PDF exactly how you'd like. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks a lot for the reply. I wrote a quick and dirty bash script to transform SVG to PDF Just in case it's useful to anyone. Regards. |
Beta Was this translation helpful? Give feedback.
-
|
thanks for sharing that script! btw, there's also a good Python library WeasyPrint that lets you create PDFs from HTML/CSS. I've been using it for Sky Atlas. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I'm trying to save maps generated with Starplot as PDFs so I can print them on A4 paper (8.27 x 11.69 inches).
According to the documentation at https://starplot.dev/reference-mapplot/#starplot.MapPlot.export, I can pass additional variables that the
savefigfunction in matplotlib accepts. I've been trying to save a map as a PDF on the paper size A4 as showed in this in this snippet (Note that using the papertype parameter to specify paper size is not available for the PDF format) :But I'm getting the following error:
TypeError: matplotlib.figure.Figure.savefig() got multiple values for keyword argument 'bbox_inches'So, is it impossible to specify the paper size? If this isn't the correct way to save a map as a PDF on a specific paper size, what would be the correct way?
Thanks in advance for the help.
Beta Was this translation helpful? Give feedback.
All reactions