Plotting a Function in Gnuplot with Range: 0<z<3, -5<x<5, -5<y<5

2 replies · 4K views · last reply
Pessoa
I want to plot in gnuplot the function , with the range being:

Typeset equation: z = -x^2/8 - y^2/8 + 2


0<z<3
-5<x<5
-5<y<5

What is the command?

Thanks in advance, fellows.
 
I think it is the set range command. I'm not sure of the syntax, but it's something like set xrange [-5:5]. You might want to check that in the help file.
 
Last edited:
set xrange[-5:5]
set yrange[-5:5]
set zrange[0:3]
splot -x*x/8.0 - y*y/8.0 + 2