我的代码:
\documentclass[12pt,a4paper]{article}
\usepackage{fourier}
\usepackage{amsmath,amssymb}
\usepackage{pstricks}
\usepackage{pst-func,pst-plot,pst-eucl,pstricks-add,pst-node,multido}
\usepackage{auto-pst-pdf}
\usepackage{graphicx}
\usepackage[margin=2.25cm]{geometry}
\def\coeff{0 -5 0 1}
\begin{document}
\begin{center}
\begin{pspicture*}(-5,-5)(5,5)
\psgrid[subgriddiv=0,griddots=10]
\psset{yunit=0.5}
\psaxes[Dy=2.5]{->}(0,0)(-5,-10)(5,10)
\psPolynomial[dotscale=2,linewidth=2pt,linecolor=red,markZeros,coeff=0 -5 0 1]{-5}{5}
\end{pspicture*}
\end{center}
\end{document}