[pstricks] Superellipse
Michael Sharpe
mchl.sharpe at gmail.com
Thu Aug 13 00:25:02 CEST 2009
\parametricplot[algebraic,linecolor=red]{0}{3.141592}{4*(cos(t))^(0.5)|
3*(sin(t))^(0.5)}
leads to a PostScript error because you are attempting to take the
square root of a negative quantity. It will works over the range 0,pi/2.
Michael
On Aug 12, 2009, at 3:02 PM, Johan Ekh wrote:
> Hi all (again...),
> one more question.
>
> I try to plot a part of a superellipse. When I use the code below it
> works,
>
> \parametricplot[linecolor=red]{0}{3.141592}{4*(cos(t))^(1.0)|
> 3*(sin(t))^(1.0)}
>
> but when I change the exponent to something else the 1, e.g.
>
> \parametricplot[linecolor=red]{0}{3.141592}{4*(cos(t))^(0.5)|
> 3*(sin(t))^(0.5)}
>
> it does not work. LaTeX runs without error but when I create a pdf
> with dvipdf
> it halts at the figure. Same result if I use \psLame in pst-func.
>
> If I look at the dvi-file, it does not contain the figure but it
> does not halt at the figure.
> Everything before and after the figure is produced.
>
> Has anyone a solution to this?
More information about the PSTricks
mailing list