1
$\begingroup$

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

$\endgroup$
1

1 Answer 1

2
$\begingroup$
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

$\endgroup$
2
  • $\begingroup$ You can do Filling -> Bottom, but I don't know how to show the hashed aspect with filling. $\endgroup$
    – Lina
    Jan 31, 2014 at 20:58
  • $\begingroup$ 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? $\endgroup$
    – Lina
    Jan 31, 2014 at 23:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.