Reading dataset value into a gnuplot variable (start of X series)?

Two ways: 1. Plot the function first and let gnuplot to tell the minimum x value: plot "inline. Dat" using 1:2 with impulses linewidth 2 xmin = GPVAL_DATA_X_MIN plot "inline.

Dat" using ($1-xmin):2 with impulses linewidth 2 2. Use external script to figure out what is the minimum x value: xmin = `sort -nk 1 inline. Dat | head -n 1 | awk '{print $1}'` plot "inline.

Dat" using ($1-xmin):2 with impulses linewidth 2.

Awesome - many thanks for the concise answer, @Sunhwan Jo - Cheers! – sdaau Sep 25 '11 at 10:04.

First = x : first ; plot "inline. Dat" using ($1-initer($1)):2 with impulses linewidth 2 ... but this looks more like "capturing" a variable, than reading it (as the function initer is being used to scan a stream of numbers, detect the first one, and return its value) :) Hope there is a better way of doing this ....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions