hrondor
hrondor

Reputation: 127

Gnuplot - line over axis

I want to see my line from data over my xzeroaxis(right now I see black axis and not colour of my line), but I cant find way how to do it. This is my header of plot right now:

set style fill transparent solid 0.5 noborder
set terminal pngcairo nocrop enhanced font "verdana,8" size 1280,960
set xtics 720
set yrange[0:0.15]
set xdata time
set format x ' %H:%M:%S'

I tried to add

set/unset xzeroaxis

But its not working, I also tried to set different linestyle/ line width etc., but I still cant find the solution.

Thank you for your help.

Upvotes: 0

Views: 414

Answers (1)

theozh
theozh

Reputation: 25714

Ok, now I see...

The simplest way, set the lower y-range slightly negative:

set yrange[-0.01:0.15]

But you were probably looking for: set border behind. Check help border.

Code:

### put border behind graph
reset session

$Data <<EOD
1 0
2 0
3 1
4 0
5 0
EOD

set border behind

plot $Data u 1:2 w l lw 2
### end of code

Result:

enter image description here

Upvotes: 2

Related Questions