help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plot polar coordinates octave-epstk??


From: Marco atzeri
Subject: Re: plot polar coordinates octave-epstk??
Date: Mon, 19 Sep 2011 15:09:00 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2

On 9/19/2011 1:18 PM, Uwe Brauer wrote:
Hello


The following code
tetha=linspace(-pi,pi,100)
r=2-4*cos(tetha)
polar(tetha,r)


Produces  produces in matlab a figure which I have attached.

In octave the curve is the same but axis are cartesian ones.

I have found in google that maybe epstk should help (BTW I
installed octave 3.4.2 from scratch on (K)ubuntu and this
package was not included). In any case the following example

x=0:0.01:2*pi;
y=sin(x).*cos(2*x).*sin(3*x);

eopen('polarplot.eps')
epolar(x,y);
eclose
eview
indeed produced the axis I was looking for, but when I tried
to apply it to my example which I modified like that
tetha=linspace(-pi,pi,100)
r=2-4*cos(tetha)
eopen('polarplot2.eps')
epolar(tetha,r)
eclose
eview

Then no graphics was generated. What to I miss?

Thanks

Uwe Brauer


ask the author

http://www.epstk.de/
http://epstk22.awardspace.com/doc/files/introduction-txt.html

as EpsTk is not part of octave

Regards
Marco


reply via email to

[Prev in Thread] Current Thread [Next in Thread]