tags:

views:

234

answers:

2

Can I get gnuplot to display the exact y-value or height of a data point (plotted using "with boxes") over its bar? I would like the plot to be easy to read so nobody has to line up the top of a bar with the y-axis and guess what the value is.

A: 

I can only think of putting the values where you want them "manually" like this:

set label "value" at 12,34

The numbers are coordinates according to your x and y ranges.

Svante
A: 

An automatic way would use "with labels", see e.g. http://gnuplot.sourceforge.net/demo_4.4/stringvar.html

Petr