ablimit
ablimit

Reputation: 2361

How to place labels on top of each box in gnuplot?

I have an array of data which looks like this [0.5, 0.3, 0.15,0.0, 0.0, -0.09, -0.25,-0.4].

I wanted put a corresponding label (or number) of the boxes on top of the each box to indicate which one is which.

Anybody knows how to do this ??

Thanks.

Upvotes: 2

Views: 2542

Answers (1)

david
david

Reputation: 56

plot 'data.txt' using 1:3 with boxes lt 1 title columnheader(3), \
     'data.txt' using 1:3:(sprintf("%.0f",$3)) with labels font "Helvetica,8" center offset 0,0.5 notitle

Upvotes: 4

Related Questions