tiby312 / poloto-project

MIT License
158 stars 10 forks source link

render_stdout()` produces better plots than `render_string()`. What the fuck? #215

Closed Guelakais closed 6 months ago

Guelakais commented 6 months ago

I just built a bar plot first with render_string() and then translated it into a pdf and then bounced it to standard output using render_stdout(), intercepted it using the > operator and wrote it to a file. The latter produced much better plots. I mean, seriously. What kind of blatant workarounds do you have to do to create decent plots? Why don't render_string() and render_stdout do almost the same under the bonnet with the difference that both methods have different destinations? What is the idea behind this?

Guelakais commented 6 months ago

Ok, I have found the answer. In fact, both methods do very well. Only when converting from svg to pdf information is lost.