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$

closed as off-topic by Young, m_goldberg, bbgodfrey, Kuba, Alexey Popkov Aug 25 '16 at 6:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Young, m_goldberg, bbgodfrey, Kuba, Alexey Popkov
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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.