# [pstricks] graph of an implicit equation

Hamed Al-Sulami hhaalsalmi at kau.edu.sa
Fri Aug 8 09:13:52 CEST 2008

Hi all,

When I tried to graph the equation "3x=y^(1/2)(y-1)"

I got some  vertical and horizontal lines as part of the graph.

Is there a way to graph it without these lines.

This is my code

\documentclass[12pt]{article}

\usepackage{pstricks,pst-func}

\pagestyle{empty}

\parindent=0pt

\begin{document}

\psset{mathLabel=false}

\psset{xunit=.5,yunit=.3}

\begin{pspicture}(-1,0)(7,10)

\psplotImp[linewidth=1.2pt,linecolor=blue,algebraic](-1,0)(7,10){
9*x^2-y*(y-3)^2}

\psplotImp[linewidth=1.3pt,linecolor=red,algebraic](-.67,1)(6,9){
3*x-y^(1/2)*(y-3)}

%\psline[linecolor=white,linewidth=3pt](-.67,1)(8,1)

%\psline[linecolor=white,linewidth=3pt](-.67,1.5)(-.67,11)

%\psline[linecolor=black,linewidth=2pt](-.67,0)(10,0)

\psaxes[ticks=all,labelFontSize=\tiny,,linewidth=1.4pt]{->}(0,0)(-1,-1)(7,10
)

\psdots[linecolor=black,dotscale=1,dotstyle=*](-.67,1)

%\psdots[linecolor=blue,dotscale=1,dotstyle=*](.67,1)

\psdots[linecolor=black,dotscale=1,dotstyle=*](6,9)

\rput(-.3,10){$y$}

\rput(7.2,-.1) { $x$}

\rput(4,3){$x=\frac{1}{3}\sqrt{y}(y-3)$}

\end{pspicture}

\end{document}

Thanks

Hamed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080808/7f4ceb2e/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://tug.org/pipermail/pstricks/attachments/20080808/7f4ceb2e/attachment.pl