Am 22.08.2022 um 12:37 schrieb Brian Revell:
> PS incidentally, although you can edit the graph to manuallyto > define the start and end year entered as integers for X axis, , the > decimal year values still appear in the graph. I haven't yet updated > to the latest Gretl version -but I guess you will be using it so it > clearly has persisted through several generations of Gretl. B

It seems to me that the cause is the automatic way that gnuplot (the underlying program that gretl uses for plotting) calculates the number / frequency of the tic marks.

Indeed, if I add the line
set xtics 1

to the plotting commands then I get rid of the non-integer tics.

(To use this workaround, you have to right-click on your plot, choose "save to session as icon", then in the icon view window you'll have a "Plot 1" icon, right-click on it and choose "edit plot commands", and there you will see the code in gnuplot syntax in a new editor window. Add the line above, click on the save button, and then on the run/execute button.)

cheers

sven