-
Notifications
You must be signed in to change notification settings - Fork 61
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
PS outputs now have correct dimensions and position. #1022
PS outputs now have correct dimensions and position. #1022
Conversation
However we do not success in preserving the aspect ratio of Hershey fonts and PSYMs as the plplot ps driver rotates, stretches and scale a fixed-aspect internal 'surface'. The aspect is thus only preserved for sizes that scale in proportion 4/3. To avoid unpleasant surprises, the font is always the PostScript font, not the Hershey one as the PS fonts are not stretched by the plplot driver. It would be marginally possible to get nice plots by customizing the postScript header afterwards, you are welcome.
Hello, |
Hi, thanks for the kind comments. |
Thanks a lot for your quick answer! Actually, a trick occurred to me: set the device size ratio x:y = 4:3 as
The result: The ratio of the ymargins sets the ratio of the actual plot. When converting to pdf, the whitespace is cropped automatically (and at worse one could call an external tool to do this cropping). This looks like a very acceptable solution. By the way, when making characters thicker, as one should for better legibility, they get shaved off at the edge; apparently,
And so on for the other sides. Note that these "protection characters" will sometimes be ignored if placed too far off the plot region; better to start close and move them out slowly. It requires a bit work but actually not too much. I hope this can help someone! Could this thread be placed somewhere "easier" to find? I looked a lot on the Internet for this problem of stretched characters in GDL and it took a long time before I found your thread from above (which was only mentioning the issue). Without this solution, GDL would be much less attractive—no non-square plots with Hershey fonts would be impractical… But I am glad that there is a solution! Thanks again for your time and work, and looking forward to all the coming developments! |
Hi thanks for the workaround. It is now avaiable in the wiki. |
However we do not success in preserving the aspect ratio of Hershey fonts and PSYMs as the plplot ps driver rotates, stretches and scale a fixed-aspect internal 'surface'.
The aspect is thus only preserved for sizes that scale in proportion 4/3.
To avoid unpleasant surprises, the font is always the PostScript font, not the Hershey one as the PS fonts are not stretched by the plplot driver.
It would be marginally possible to get nice plots by customizing the postScript header afterwards, you are welcome.