0
$\begingroup$

I am trying combine this two functions into one piece in grid.

RegionPlot[x^2+y^2<=1 \[And] y>x,{x,-2,2},{y,-2,2},PlotPoints->15]

Graphics[Disk[{1/2,-1/2}, 1/2]]

I tried put Disk[{},] inside first one but it doesn't work. I would appreciate for any help.

$\endgroup$
  • $\begingroup$ All: this is almost certainly a duplicate. Please search and vote to close appropriately if you have time. $\endgroup$ – Mr.Wizard Apr 13 '15 at 17:20
0
$\begingroup$

Combine the two functions in Show[]:

Show[RegionPlot[x^2+y^2<=1 \[And] y>x,{x,-2,2},{y,-2,2},PlotPoints->15],Graphics[Disk[{1/2,-1/2}, 1/2]]].

$\endgroup$
1
$\begingroup$

You can put it inside RegionPlot but you have to use Epilog or Prolog:

RegionPlot[x^2 + y^2 <= 1 \[And] y > x, {x, -2, 2}, {y, -2, 2}, 
 PlotPoints -> 15, Epilog -> Disk[{1/2, -1/2}, 1/2]]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.