Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

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

share|improve this question

marked as duplicate by rm -rf Jan 31 at 19:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Also related: How can I make hatching filling of plot –  rm -rf Jan 31 at 19:32

1 Answer 1

up vote 1 down vote accepted
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

share|improve this answer
    
You can do Filling -> Bottom, but I don't know how to show the hashed aspect with filling. –  Lina Jan 31 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 at 23:04

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