1
$\begingroup$

I use Mathematica 11. I type the following code in Mathematica 11:

RegionPlot[0 <= y <= x && y <= 1, {x, 0, 2}, {y, 0, 2}]

The output is:

region plot

Now I want to add a black dashed line from (1,0) to (1,1) on the above figure, what code should I input? Thank you very much in advance.

$\endgroup$
  • 1
    $\begingroup$ You can do this with the Epilog option to RegionPlot. $\endgroup$ – Brett Champion Aug 25 '16 at 2:16
  • 1
    $\begingroup$ @BrettChampion Thank you for your comment. I have solved the question. $\endgroup$ – Wei-Cheng Liu Aug 25 '16 at 2:36
  • $\begingroup$ Glad to hear it! $\endgroup$ – Brett Champion Aug 25 '16 at 3:16

Browse other questions tagged or ask your own question.