1

Can someone tell me how to dash a part of a region where the function doesn´t exist?

An example 1 >= x^2 + x > y, where y is not included.

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
Alberto
  • 13
  • 2

1 Answers1

0

You can use ContourPlot with x^2 + x == y as the first argument and use it first Part as Epilog in RegionPlot:

 RegionPlot[1 >= x^2 + x > y, {x, 0, 1}, {y, 0, 1}, 
  PlotStyle -> Opacity[.1, Blue],
  PlotPoints -> 100, BoundaryStyle -> None,
  Epilog -> ContourPlot[ x^2 + x == y, {x, 0, 1}, {y, 0, 1}, 
    ContourStyle -> Directive[Thick, Red, Dashed]][[1]]]

enter image description here

kglr
  • 394,356
  • 18
  • 477
  • 896