I'm using the tkz-fct package and I'd like to change the appereance of the grid issued with the command \tkzGrid , for example switch from solid to dotted lines.
So far I managed only to change the color of the grid lines with the following MWE, (not minimal really, since I could drop the function plot).
\documentclass{scrartcl}
\usepackage{tkz-fct}
\begin{document}
\begin{tikzpicture}
\tkzInit[xmin=-5,xmax=4,ymin=-4,ymax=5]
\tkzGrid[color=yellow,style=dashed,line width=2pt]
\tkzFct[color=red,ultra thick]{(-x**2-2*x+3)}
\tkzAxeXY
\end{tikzpicture}
\end{document}
I am aware that I can put \tkzGrid in a scope environment like suggested in the answer at
link but I think that something like a \tikzset{grid style/.style={draw (or color) = yellow,line pattern=dotted}} would be more appropriate.
I couldn't find anything else searching through tex.stack exchange or in the tkz-fct tutorial.
Edit on 2024 january 4-th. A strange behaviour arises when I put \tkzAxeXY after \tkzFct; axes' graduations get red.
Tried to add some options to \tkzGrid, it doesn't occur any error but grid lines don't get dashed; line width and color are affected instead.

tkz-fctis a fairly rudimentary package. It allows users to create their own code with TikZ. Since the creation of this package,pgfplotshas appeared, which is complete and perfect, so I don't think I'll be reviewing the code. – Alain Matthes Jan 05 '24 at 21:39tkz-elementsis well advanced, I'll make a more complete version but withlualatexand withoutgnuplot. – Alain Matthes Jan 07 '24 at 10:34\tkzAxeXYaftertkzFct[color=red]. Unfortunately I cannot post images yet. – Antonio Jan 08 '24 at 11:45\tkzAxeXYbeforetkzFct[color=red]but it is possible to put it aftertkzFctif you put this line either in a scope or simply in a{ ....}group. – Alain Matthes Jan 08 '24 at 13:36