# How to draw a black dashed line using RegionPlot? [closed]

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:

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.

## closed as off-topic by Young, m_goldberg, bbgodfrey, Kuba♦, Alexey PopkovAug 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.

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