It seems that the font size in gnuplot images is different depending on the Windows OS text size. This is configured in the Control Panel -> Control Panel\Appearance and Personalization\Display.
Using this simple script:
set term pngcairo enhanced font "Arial,12" size 960, 720 rounded
set output 'labels.png'
plot x t 'LabelSize'
The text size of the output image is different when you change the Windows text size (you have to log off and log on to change this text size).
It has been observed with gnuplot 4.6.6 and reproduced with gnuplot 5.0.0 under Windows 7.
I attach two outputs with different Windows text size configuration.
I could reproduce the phenomena on gnuplot 5.0 and 5.1 (cvs) on some terminals using similar script by the original creator.
Cairo based
pngcairo, pdfcairo, epscairo, wxt
Interactive terminal (wxt was assigned to cairo based)
windows, qt
other terminals
png (gd based), emf, svg, postscript (eps), canvas
Affected terminals
All cairo based terminals, windows, qt, canvas
However, for canvas terminal font size is reduced.
Non-affected terminals
png, emf, svg, postscript (eps)
The attachment file includes test results.
Note 1
On postscript (eps), pdfcairo, and epscairo terminals, the size option induces broken image files.
Note 2
I have tested gnuplot on cygwin (5.1 cvs built by myself) using wxt terminal, the text enlarge by the control panel does not give any effect. Thus, this issue perhaps only occurs on native windows.
Last edit: Tatsuro MATSUOKA 2015-05-27
I have forgotten to mention two things.
http://gnuplot.10905.n7.nabble.com/Gnuplot-text-scaling-problem-on-Windows-td19463.html
This bug is likely realted to the fact that versions <= 5.0 are not DPI-aware. That has since been fixed in CVS for version 5.1, but is difficult to back-port to 5.0. Could you please test again with 5.1?
I have tested on cvs(5.1 2017-01-08) on windows 10. The results are the same as those on first post.
* labels_100p510.png (100%)
* labels_125p510.png (125%)
Last edit: Tatsuro MATSUOKA 2017-01-09
I can reproduce the same behavior as described in the original post with version 5.2.8 on Windows 10. Here ist the output of the script above for font scaling 100 % and 125 %, respectively.
Edit: I also attached scaling 150 % and 175 %, because of the comment from Tatsuro MATSUOKA on 2015-05-26. But the phenomenon also occurs in these cases.
Last edit: Klaus 2020-12-15
I can reproduce the same behavior as described in the original post with Gnuplot 5.4.3 on Windows 10 (21H2) using the same script and login off after changing the Windows display scaling:
Attached are results for scalings 100%, 125% and 150%.Since the status of this ticket is closed-fixed , I vote for reopening this ticket.Edit: Sorry, i messed up the script running the different versions, and in fact all the now removed plots where from Gnuplot 5.2.8. Gnuplot 5.0.7 and 5.4.3 are producing fine results.
Last edit: Dandy Eschricht 2022-02-02