From: Leo B. <Leo...@um...> - 2025-02-23 22:52:44
|
On Sat, Feb 22 2025, Eduardo Ochs <edu...@gm...> wrote: > Hi list, > > the screenshot that I am attaching shows how the output of `draw2d'ing > to the screen looks different from the output of `draw2d'ing to a PDF > file. How do I fix that? <snip> > If we diff the files maxout_screen.gnuplot and maxout_pdf.gnuplot we > can see that they only differ in their first lines - > > set terminal GNUTERM size 600, 500 > > versus: > > set terminal pdf dashed enhanced color size 6.0cm, 5.0cm > set out 'o.pdf' I think that the second snippet answers your question: it is a problem with the gnuplot pdf terminal code. For some reason, fonts are appearing oversized compared to other terminals. It seems like we will need to ask the gnuplot developpers about this. On the other hand, changing dimensions and font_size can do the trick: e.g. add dimensions = [11,8.5]*254, font = "Arial", font_size = 16, to your draw_cmds. Leo |