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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -