chaitanya majjari
chaitanya majjari

Reputation: 271

Gnuplot reducing the y axis range

I have the following plot. enter image description here

My y axis range is too high so I used commands like

       set yrange [70:90]

However I have many plots and I cannto set the range by numerical values. So I have used the followind commands

set yrange [ymin:ymax] 

but it did not worked so I have used

set yrange [GPVAL_DATA_Y_MIN:GPVAL_DATA_Y_MAX]

but the y range is then completly different. Is there any other way to set the y range

Upvotes: 1

Views: 1949

Answers (1)

Tom Solid
Tom Solid

Reputation: 2344

Because GPVAL_DATA_Y_MIN and etc... gets its value after the plot. To use the corresponding values you have to plot twice.

Sőt!

GPVAL_DATA_Y_MIN and etc... gets value from the last dataset/datafile you have ploted :-/

Upvotes: 2

Related Questions