Aim
Aim

Reputation: 487

Hatching (Pattern fill) in Gnuplot

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?

enter image description here

Upvotes: 0

Views: 299

Answers (1)

Ethan
Ethan

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)

enter image description here

Upvotes: 1

Related Questions