increment of ytics in gnuplot -
increment of ytics in gnuplot -
i plotted graph , i'd show ytics function of x. example: plot x^2 , i'd show ytics 0,1,4,9... . there way automatically or have set manually every tic in y-axis? tried set function when defining ytics gnuplot doesn't take it. help
you can utilize for
loop. of course, here need know x-range in advance:
f(x)=x**2 set ytics ( sprintf('%f',f(-10)) f(-10) ) set [i=-9:10] ytics add together ( sprintf('%f',f(i)) f(i) ) plot f(x)
gnuplot
Comments
Post a Comment