3

I am plotting several 3D graphs with Gnuplot after experimenting a bit with Google's nice graphing tool. One thing I like from Google's tool is the "boundary box" that it draws around the surface, which makes it easier for me to see the size.

Is there any way to plot this boundary box in Gnuplot?

For instance, this function: z = (15 - x*y) / (100 - x)

Plotted with Google: https://www.google.es/search?q=z+%3D+(15+-+xy)%2F(100-x)&aq=f&oq=z+%3D+(15+-+xy)%2F(100-x)

3D surface plot with Google

An equivalent script for Gnuplot:

    set grid
    set xrange [-10:10]
    set yrange [-10:10]
    set zrange [-0.7:1]
    set isosamples 100
    set pm3d
    set hidden3d
    set ticslevel 0.0
    set view 60, 100
    splot (15 - x*y) / (100 - x)

Yields the following plot:

3D surface plot with Gnuplot

Thanks in advance

1 Answer 1

5

Yes, you can turn on the boundary by using the command

set border 4095

(help set border for an explanation of that number: in short there is one bit per border edge and there are 12 edges on a cube.)

Gnuplot doesn't draw the tics on each of the border lines, though.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.