I like gnuplot very much but in version 5.4.1 there is a strange bug. The way to reproduce:
set grid
plot sin(x) -> the function is plotted on the grid as expected
set tics front
plot sin(x) -> the function is plotted but the grid disappears
set grid front
plot sin(x) -> also no grid is plotted
This happens in Windows version 5.4.1 (binary package gp541-win64-mingw.7z) both in wxt and qt terminals.
Indeed. Strange. The same problem is present in the development version.