Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PolarPlot goes upto 1.2 on axis, not 1?

2 views
Skip to first unread message

fo3nix

unread,
Nov 20, 2009, 6:42:50 AM11/20/09
to
Hi guys,
I am trying to polarplot a function like Sin[2 x]^2, from -Pi/2 to Pi/
2, with polar ticks and gridlines enabled.

Every time I do this, the vertical axis goes up to 1.2, not 1 --- is
there any way to have this only go upto 1? (The function I'm plotting
goes upto 1 only.)

Cheers!

Sjoerd C. de Vries

unread,
Nov 21, 2009, 3:35:21 AM11/21/09
to
PolarPlot[Sin[2 x]^2, {x, 0, 2 \[Pi]}, PolarTicks -> Automatic,
GridLines -> Automatic, PlotRange -> 1]

Cheers -- Sjoerd

Chris Poole

unread,
Nov 21, 2009, 3:38:45 AM11/21/09
to
Sorry about that,

This is the code:

PolarPlot[Sin[2 \[Theta]]^2, {\[Theta], -\[Pi]/2, \[Pi]/2},
PolarGridLines -> True, PolarAxes -> True,
PolarTicks -> {Table[i \[Degree], {i, -90, 90, 15}], Automatic},
PlotRange -> {{0, 2}, {-1, 1}}, PerformanceGoal -> "Speed",
PlotRangeClipping -> False,
PlotStyle -> {{Red, Thick, Dotted}, {Red, Thick}},
PlotLabel -> "label"]

The 'y' axis goes to 1.2; I'd like it to go to 1, and thus have the
plot peak at the outer bold line.

Thanks.

On Fri, Nov 20, 2009 at 1:12 PM, David Park <djm...@comcast.net> wrote:
> Copy as Input Text and paste the explicit code into your posting. Otherwise
> you are asking responders to guess what you did.
>
>
> David Park
> djm...@comcast.net
> http://home.comcast.net/~djmpark/

Chris Poole

unread,
Nov 21, 2009, 3:41:55 AM11/21/09
to
Thanks,

PolarAxesOrigin->{90deg,1} is great and exactly what I wanted. I will
file that support request.

Chris


On Fri, Nov 20, 2009 at 3:47 PM, Brett Champion <bre...@wolfram.com> wrote:


> On Nov 20, 2009, at 5:41 AM, fo3nix wrote:
>
>> Hi guys,
>> I am trying to polarplot a function like Sin[2 x]^2, from -Pi/2 to Pi/
>> 2, with polar ticks and gridlines enabled.
>>
>> Every time I do this, the vertical axis goes up to 1.2, not 1 --- is
>> there any way to have this only go upto 1? (The function I'm plotting
>> goes upto 1 only.)
>

> This works: PolarAxesOrigin -> {0, 1}, although I'd expect PlotRange->1 to
> work also. Can you file that with sup...@wolfram.com, please?
>
> Thanks,
>
> Brett Champion
> Wolfram Research
>

Brett Champion

unread,
Nov 21, 2009, 3:42:06 AM11/21/09
to

David Park

unread,
Nov 21, 2009, 3:43:10 AM11/21/09
to
Copy as Input Text and paste the explicit code into your posting. Otherwise
you are asking responders to guess what you did.


From: fo3nix [mailto:chris...@gmail.com]

Hi guys,
I am trying to polarplot a function like Sin[2 x]^2, from -Pi/2 to Pi/
2, with polar ticks and gridlines enabled.

Every time I do this, the vertical axis goes up to 1.2, not 1 --- is
there any way to have this only go upto 1? (The function I'm plotting
goes upto 1 only.)

Cheers!

0 new messages