Is it possible to get the values for de y-axis in gnuplot? -
Is it possible to get the values for de y-axis in gnuplot? -
i need calculated y-values gnuplot. how values. in example, de values 100 , -700.
i looked between default variables gnuplot not find it.
oké, allow me seek explane englisch poor, sorry that. first example;
here can see problems. have offset set white column when possible en black out of column. depends ofcours of values y-min , y-max. think, when have these values can calculate offset. have hard value;
"<tail -60 log.txt" u 1:(-($12)):($12>300 ? (-$12) : sprintf("")) w labels left font ",10" tc rgb "white" rotate offset 0,0.2 notitle,\ "<tail -60 log.txt" u 1:(-($12)):(($12<=300 && $12>0) ? (-$12) : sprintf("")) w labels left font ",10" tc rgb "black" rotate offset 0,-1.7 notitle,\ maybe there trick or other solution?
here illustration number 3. guess can not follow you, sorry that. try;
set terminal unknown plot "<tail -60 log.txt" using 9:12 print gpval_y_max, gpval_y_min replot and values: 650,0 150,0 , values of column 12, thats oké not values of y-axis , below zero. (see illustration 3) wrong or not understand?
(i changed topic because not know how add together comment picture)
these values result of gnuplot's autoscaling. you'll have access values after plotting via variables gpval_y_min , gpval_y_max (type show variables all after plotting see available variables).
if need values in plot must plot unknown terminal first , actual terminal:
set terminal unknown plot 1.01*x set terminal wxt enhanced set label left @ graph 0.1,0.9 sprintf('y_{max} = %.2f', gpval_y_max) replot gnuplot unique-values
Comments
Post a Comment