A secondary issue is figuring out how to add the axes from -10 to 10 to the coordinate grid.
Code: Select all
\documentclass[fleqn,addpoints
%,answers
]{exam}
\usepackage{amsfonts,amsmath,amssymb,amsthm,mathtools}
\usepackage{color} % Necessary for \shaded solutions and color solutions
\usepackage{coordsys}
\usepackage{array} % Provides for a more flexible array and tabular environment
\newcolumntype{L}{>{\begin{math}}l<{\end{math}}}%
\newcolumntype{C}{>{\begin{math}}c<{\end{math}}}%
\newcolumntype{R}{>{\begin{math}}r<{\end{math}}}%
\everymath{\displaystyle}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}
\shadedsolutions
\newcommand{\sol}[1]{\begin{solution} #1 \end{solution}\vspace{\stretch{1}}}
\begin{document}
\begin{questions}
\question[2] Construct a scatterplot for the given data (label the axes).
\begin{tabular}[b]{R|R}
x & y \\
\hline
-3 & -7 \\
-2 & -3 \\
-1 & -2 \\
-4 & 1 \\
-2 & 2 \\
6 & 1 \\
2 & -5 \\
9 & 2 \\
-5 & -4 \\
-1 & -4
\end{tabular}\qquad\qquad
\coordgrid(0,0)(200,200)
%\begin{oneparchoices}
%\cc \includegraphics{T2_Q4_A.png}
%\ch \includegraphics{T2_Q4_B.png}\newline
%\ch \includegraphics{T2_Q4_C.png}
%\ch \includegraphics{T2_Q4_D.png}
%\end{oneparchoices}
%\al{A}\vspace{\stretch{1}}
\sol{\coordgrid(0,0)(200,200)}
\end{questions}
\end{document}
This one prints the system the right size, but does not overlay it, and has the wrong labels:
Code: Select all
\coordgrid(0,0)(200,200)
\coordsys(0,0)(200,200)
This would probably have the right labels, except that it's really small and offset to the left and also does not overlay the grid:
Code: Select all
\coordgrid(0,0)(200,200)
\coordsys(-10,-10)(10,10)