Skip to content


Gnuplot display maximum values

Gnuplot is a nice plotting tool. Unfortunately, not all options are easy to find.
If you want to identify the maximum value within a plot, do the following:

1) Plot the data you are interested in.

2) Afterwards,

to get the maximum value of the x value (in the data set, not in the plotted area) type

print GPVAL_DATA_X_MAX

for the y axis, type

print GPVAL_DATA_Y_MAX

for the color bar type

print GPVAL_DATA_CB_MAX

Posted in ITechnische Post.

Tagged with , .


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Andreas Heindl says

    Also stats[1] is a quite handy command. It computes statistical measures such as mean, standard deviation, correlation (Assuming you have gnuplot 4.4 or greater)

    [1]
    bit.ly/WTJYt5