Vini.g.fer
Vini.g.fer

Reputation: 11919

Gnuplot - Draw grid behind rectangles

I'm having a hard time trying to figure out how to draw the grid lines behind the rectangles in Gnuplot. Does anyone know how to achieve this? Here is the code I've tried so far, with an image for quick view of the result:

set nokey
set grid
set size ratio -1
set xrange[0:10]
set yrange[0:10]
set style fill transparent solid 0.5
set xtics 1
set ytics 1
set obj 1 rect from 0,0 to 3,2
set obj 2 rect from 0,0 to 2,3
plot 0

enter image description here

Upvotes: 0

Views: 1056

Answers (1)

ewcz
ewcz

Reputation: 13087

perhaps this might help: set obj 1 rect from 0,0 to 3,2 fillstyle empty

Upvotes: 1

Related Questions