Is there a way to make the grid in \psgrid
look the same as the one in the tikzpicture
?
\documentclass[12pt,pstricks]{exam}
\usepackage{tikz}
\usepackage{pst-all}
\begin{document}
\psset{unit=0.5cm}
\begin{pspicture}(12,14)
\psgrid[gridcolor=red,subgridcolor=green,gridlabels=0](0,0)(10,12)
\psaxes[Dx=2,Dy=4,showorigin=false]{->}(0,0)(0,0)(11,13)
\psplot{0.5}{9.5}{36 x mul sin 5 mul 6 add}
\end{pspicture}\\\vspace{1cm}
\begin{tikzpicture}[scale=0.5]
\draw [ultra thick,<->] (0,13) -- (0,0) -- (11,0);
\foreach \y in {2,4,...,12}{\draw [color=red] (0,\y) -- (10,\y);}
\foreach \x in {2,4,...,10}{\draw [color=red] (\x,12) -- (\x,0) node [below,color=black] {\x};}
\foreach \y in {1,3,...,11}{\draw [color=green] (0,\y) -- (10,\y);}
\foreach \y in {4,8,12}{\draw (0,\y) node [left] {\y};}
\foreach \x in {0.5,1,1.5,2.5,3,3.5,4.5,5,5.5,6.5,7,7.5,8.5,9,9.5}{\draw [color=green] (\x,0) -- (\x,12);}
\draw [domain=0.5:9.5,samples=100,thick,<->] plot (\x,{5*sin(36*\x)+6});
\end{tikzpicture}
\end{document}