Skip to main content
2 of 2
Fixed typo
Michael E2
  • 244.8k
  • 18
  • 351
  • 774

PlotRange -> {{<domain>}, {<codomain>}} is the way to set the codomain in its normal meaning.

But the OP has in mind restricting the region that is plotted, and that task can be handled with RegionFunction.

Plot[10 (x - 10) Sin[x], {x, -2, 80},
 RegionFunction -> Function[{x, y}, 3 x < y < 7 x + 3]]

enter image description here

Michael E2
  • 244.8k
  • 18
  • 351
  • 774