From: Szabolcs on
Is there a simple way to cut out the first quarter from a polar plot?
I am only interested in the region from 0 to pi/2; the rest is just
taking up space. How can I crop the plot to this quarter?

Example plot:

a=0:.1:pi/2;
polar(a,sin(2*a))
From: Walter Roberson on
In article <de1956da-6f61-4d5e-9935-548e3d65ffa3(a)w7g2000hsa.googlegroups.com>,
Szabolcs <szhorvat(a)gmail.com> wrote:
>Is there a simple way to cut out the first quarter from a polar plot?
>I am only interested in the region from 0 to pi/2; the rest is just
>taking up space. How can I crop the plot to this quarter?

>Example plot:

>a=0:.1:pi/2;
>polar(a,sin(2*a))

xl = get(gca,'XLim'); yl = get(gca,'YLim');
set(gca,'XLim', [0 xl(2)], 'YLim', [0 yl(2)]);

That was easier than I expected!

--
"Walter is a great man." -- Dennis Green
From: Ken Fleisher on
Szabolcs <szhorvat(a)gmail.com> wrote in message
<de1956da-6f61-4d5e-9935-548e3d65ffa3(a)w7g2000hsa.googlegroups.com>...
> Is there a simple way to cut out the first quarter from a
polar plot?
> I am only interested in the region from 0 to pi/2; the
rest is just
> taking up space. How can I crop the plot to this quarter?
>
> Example plot:
>
> a=0:.1:pi/2;
> polar(a,sin(2*a))


How about:

axis([0 inf 0 inf])
From: Szabolcs on
On May 5, 7:26 pm, "Ken Fleisher" <k-fleisher.donotspa...(a)nga.gov>
wrote:
> Szabolcs <szhor...(a)gmail.com> wrote in message
>
> <de1956da-6f61-4d5e-9935-548e3d65f...(a)w7g2000hsa.googlegroups.com>...
>
> > Is there a simple way to cut out the first quarter from a
> polar plot?
> > I am only interested in the region from 0 to pi/2; the
> rest is just
> > taking up space. How can I crop the plot to this quarter?
>
> > Example plot:
>
> > a=0:.1:pi/2;
> > polar(a,sin(2*a))
>
> How about:
>
> axis([0 inf 0 inf])

Thank you, Walter and Ken! (Great newsgroup!)