SAMPLES, values at ticmarks

Erik Luijten <[email protected]> Fri, 11 Jul 2025 09:58:56 -0500
Newsgroups gmane.comp.graphics.gnuplot.bugs
Message-ID <CAM4Pt-_8KY6enD+Sa5U4NgsSv2EaPcBhX_JkTSWBgBbxVpBLyQ@mail.gmail.com>
Hi,

I hope this is not sacrilege, but would it be possible to consider changing
the default value of SAMPLES in gadgets.h?  I understand that this was set
to this value in a time when the calculation was costly and screens had
much lower resolution, but nowadays there doesn't seem to be a good reason
to not set it to, say, 500. The effect is absolutely noticeable, see e.g.
the first demo on https://gnuplot.sourceforge.net/demo_6.0/simple.html .
Of course, it can be overridden in ~/.gnuplot, but the typical novice user
is not aware of that, and is needlessly confronted with a low-quality plot
of even simple functions.

Related to that particular demo: I noticed that the values at tics marks
are not located exactly where one would expect them. Take something simple
like

set xtics font ", 20"

plot sin(x)



The "0" along the x-axis is not centered around the ticmark. Adding
'center' or 'autojustify' does not fix this. It is visible in different
terminals, so I presume it is a setting in term.c? At first, I assumed it
was an error on my side, but then I noticed it in
https://gnuplot.sourceforge.net/demo_6.0/simple.1.png as well. Apologies if
there is a silly oversight on my part.

Best,


Erik

_______________________________________________
gnuplot-bugs mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs