\documentclass[11pt]{amsart} \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots. \geometry{letterpaper} % ... or a4paper or a5paper or ... %\geometry{landscape} % Activate for for rotated page geometry %\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent \usepackage{graphicx} \usepackage{amssymb} \usepackage{epstopdf} \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png} \usepackage{pstricks, pst-plot, pst-node} \usepackage{xcolor,soul} \title{datatest} %\author{The Author} %\date{} % Activate to display a given date or no date \begin{document} \maketitle \begin{figure}[h!] \begin{center} \begin{pspicture}(0,0)(5,5) \savedata{\mydata}{ {0.5,1.0}, {0.75,0.5}, {1.0,1.0}, {1.25 ,1.75}, {1.5,1.5}, {1.75,1.75}, {2,2.0}, {2.25 ,2.5}, {2.5, 2.25}, {2.75,2.8}, {3,3.3}, {3.25,3.7}, {3.5, 3.75}, {3.75,3.6}, {4,4.25}, {4.25 ,3.75}, {4.5, 4.6}, {4.75,4.25}, } \fileplot[plotstyle=dots, dotsize=1.5pt]{\mydata} \psaxes[Dy=1.0]{->}(5,5) \uput[-90](5,0){$x$} \uput[0](0,5){$y$} \end{pspicture} \caption{Least Squares Approximation} %\label{default} \end{center} \end{figure} \end{document}