[pstricks] improve the code Figure is not drawn continuously

Luís Lopes qed_texte at hotmail.com
Thu Jan 12 20:27:19 CET 2012


Hi, 

I am still trying to get a better figure than 
what I've got. 

With the code below one can see 
"holes" in the curve. Moreover in the 
continuous parts it seems to have a jigsaw 
pattern. 

As suggested a while ago,  stepFactor=0.1 improves 
the drawing but it takes too much time in my (old) 
computer. 

I use the following packages as part of a .sty file; 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Construção de gráficos com PSTricks. 
%

\usepackage{multido}
\usepackage[showerrors,dvipsnames]{pstricks} % prologue (this option removes theorem's frame and the like) 
\usepackage{pst-infixplot,pst-math,pst-plot,pst-func,pst-3dplot,pst-vue3d,pst-eucl}
\usepackage{pstricks-add} 
%\usepackage{pst-all} 
%\usepackage[nopstricks,tightpage]{pst-pdf} % script: ps4pdf-pst file.tex 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The code that draws the figure follows. 

\begin{figure}[ht!] %[H]
\begin{center}
\setlength{\fboxrule}{1pt} \setlength{\fboxsep}{3mm}
\fbox{%\framebox[\textwidth]{}
%\newrgbcolor{zzttqq}{0.6 0.2 0}
\psset{xunit=0.5cm,yunit=0.5cm,algebraic=true,dotstyle=o,dotsize=3pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-5.1,-17)(17,7.5)
\psaxes[Dx=4,Dy=1,subticks=2]{->}(0,0)(-4.4,-16.5)(16,4.8)[$x$,-135][$y$,-45]
\pscircle[linecolor=red](2.5,3.1754264805){2.020726442}
%part in fourth quadrant in green not too low
\psclip{\psframe[linestyle=none](-5,-16)(14,4)}
\psplotImp[algebraic,linecolor=green,linewidth=2pt,stepFactor=0.1](-6.1,-18)(19,5){ y*(x^2-10*x+y^2)*11/14+(x^3-5*x^2+y^2*x+5*y^2)*5*sqrt(3)/14 }\endpsclip
%overdraw part in second quadrant with yellow funciona deixei em % ,stepFactor=0.1
%\psclip{\psframe[linestyle=none](-5,0)(0,4)} %tira %
%\psplotImp[algebraic,linecolor=yellow,linewidth=2pt](-6.1,-18)(19,5){% tira % %y*(x^2-10*x+y^2)*11/14+(x^3-5*x^2+y^2*x+5*y^2)*5*sqrt(3)/14 }\endpsclip %tira %
%overdraw part in first quadrant with magenta
\psclip{\psframe[linestyle=none](0,0)(6,4)}
\psplotImp[algebraic,linecolor=Magenta,linewidth=2pt,stepFactor=0.1](-6.1,-18)(19,5){ y*(x^2-10*x+y^2)*11/14+(x^3-5*x^2+y^2*x+5*y^2)*5*sqrt(3)/14 }\endpsclip
%overdraw part in fourth quadrant with blue
\psclip{\psframe[linestyle=none](0,0)(6,-2)}
\psplotImp[algebraic,linecolor=blue,linewidth=2pt](-6.1,-18)(19,5){ y*(x^2-10*x+y^2)*11/14+(x^3-5*x^2+y^2*x+5*y^2)*5*sqrt(3)/14 }\endpsclip
\rput[tl](6.1,5.9){\red{$\Gamma$}}
%\psplotImp[algebraic,linecolor=red](-4,-4)(4,4){x^2-y^2-1} %(-6,-18)(18,8)
%\psplotImp[algebraic,linecolor=yellow](-4,-4)(4,4){x^2-y^2-4} %(-6,-18)(18,8)
%\psplot[algebraic,linecolor=zzttqq,linewidth=2pt]{0}{12}{sqrt(x)} %blue
\end{pspicture*}}
\caption{Lugar geométrico de $D_{_{\!b}}$ e $E_{_{b}}$ quando  $\mathbf A$  percorre $\Gamma$.} %$\mbfA$ $\mathbf A$
\label{figuraexer29b}
\end{center}
\end{figure}

Thank you for your help. 

Regards, 
Luis 


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20120112/e209c4ee/attachment.html>


More information about the PSTricks mailing list