1

I would like to show an exclusion plot, by having a filling made of parallel tilted lines. Any ideas?

Something along these lines

enter image description here

Dr. belisarius
  • 115,881
  • 13
  • 203
  • 453
Lina
  • 307
  • 1
  • 7

1 Answers1

2
RegionPlot[x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2}, 
MeshFunctions -> {(2 #1 - #2) &, (2 #1 - #2) &}, Mesh -> 100]

Mathematica graphics

Show[RegionPlot[1 < x^2 + y^3 < 2, {x, -2, 2}, {y, -2, 2}, 
MeshFunctions -> {#1 - #2 &}, Mesh -> 100], 
RegionPlot[0.5 < x^2 + y^2 < 1.5, {x, -2, 2}, {y, -2, 2}, 
PlotStyle -> {Pink, Opacity[0.5]}, BoundaryStyle -> Dashed]]

enter image description here

Zviovich
  • 9,308
  • 1
  • 30
  • 52
  • You can do Filling -> Bottom, but I don't know how to show the hashed aspect with filling. – Lina Jan 31 '14 at 20:58
  • I want to show this along side a LogPlot, and I'm trying to use Show, but it is showing it in the wrong place. Any suggestions? – Lina Jan 31 '14 at 23:04