My problem is: I drew a picture in Latexdraw software and when I run the latex code of my picture in my editor, lots of errors made. I use TexLive 2017 and my editor is bidiTexmaker. My code is:
\documentclass[12pt]{article}
\usepackage{amsmath,verbatim,epsfig,graphicx,amssymb}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{helvet}
\usepackage{pst-grad}
\usepackage{pst-plot}
\begin{document}
\begin{figure}[h]
\begin{pspicture}(0,-1.212)(3.07325,1.212)
\definecolor{color509}{rgb}{0.2,0.2,0.2}
\psline[linewidth=0.024cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(0.06625,0.6)(0.88625,0.6)
\usefont{T1}{ptm}{b}{it}
\usefont{T1}{ptm}{b}{it}
\usefont{T1}{ptm}{b}{it}
\psframe[linewidth=0.024,dimen=outer](2.04625,1.02)(0.88625,0.2)
\psline[linewidth=0.024cm](2.86625,1.2)(2.86625,0.0)
\psline[linewidth=0.024cm](0.06625,1.2)(0.06625,0.0)
\psdots[dotsize=0.374,dotstyle=oplus](2.86625,0.6)
\psline[linewidth=0.024cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(2.06625,0.6)(2.66625,0.6)
\psline[linewidth=0.024cm,linecolor=color509](0.06625,0.0)(2.86625,-1.2)
\psline[linewidth=0.024cm,linecolor=color509](2.86625,0.0)(0.06625,-1.2)
\end{pspicture}
\end{figure}
\end{document}
The picture of errors are:
I would very much appreciate any assistance you can offer me in this question.
Edition: I want to ask you to guide to improve the code until that the picture inside an ellipse as follows. Thanks
xelatex
orlatex-dvips-ps2pdf
linecolor=...
It's used in your code.