Reputation: 487
In the attached image I want to have hatched lines in the entire region to the left the dashed line i.e. in the region before x = -4. How can this be done?
Upvotes: 0
Views: 299
Reputation: 15118
set object 1 rectangle from graph 0,0 to first -4, graph 1
set object 1 fillstyle pattern 1 fillcolor "cyan"
set xrange [-5:5]
set grid x y
plot sin(x)
Upvotes: 1