3d Plots using Plots.jl

If I have a function

using Plots
f(x,c)=x^2+6x+(c/x)

how do I make it into a 3d plot like a topographic map?

Something like

surface(-3:0.1:3, -3:0.1:3, f)

and/or

contour(-3:0.1:3, -3:0.1:3, f)
2 Likes