Message Boards Message Boards

0
|
1232 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Shading a region with a changing boundary?

Posted 1 year ago

I'd like to shade the region marked "fill this region". I'd prefer a method that doesn't require me to break the region up into smaller regions. Maybe using one application of RegionPlot?

POSTED BY: Jon Joseph
2 Replies
Posted 1 year ago

That does work. Thanks very much. Too bad there isn't a RegionPlotPolar function.

POSTED BY: Jon Joseph

For this particular plot you can use Graphics instead of PolarPlot:

Graphics[{{Yellow, 
   Polygon[Join[{AngleVector[{2, Pi/3}], AngleVector[{1, Pi/3}], 
      AngleVector[{1, Pi/3}]}, 
     Join[{AngleVector[{2, Pi/3}], AngleVector[{1, Pi/3}], 
       AngleVector[{1, Pi/3}]}, 
      Table[AngleVector[{2, theta}], {theta, Pi/6, Pi/3, Pi/30}]]]]}, 
  Circle[{0, 0}, 1, {Pi/6, Pi/3}], Circle[{0, 0}, 2, {Pi/6, Pi/3}],
  Line[{{0, 0}, AngleVector[{2, Pi/6}]}], 
  Line[{{0, 0}, AngleVector[{2, Pi/3}]}], Dashed, 
  Line[{AngleVector[Pi/3], AngleVector[{2, Pi/6}]}]}, Axes -> True]

However, you can alternatively take the Polygon above and paste it into a Prolog to PolarPlot.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract