nalyd88
nalyd88

Reputation: 5148

Plots.jl - Turn off axis and grid lines

I am trying to make a surface plot without the axis and grid lines. I found that I can turn off the grid with grid = false but I can't find a way to remove the axis lines.

surface(x2d, y2d, z2d, fill_z = color_mat, fc = :haline, grid=false)

enter image description here

Thanks!

Upvotes: 12

Views: 13279

Answers (3)

Vectornaut
Vectornaut

Reputation: 531

Try showaxis = false, as described in the axis attributes documentation.

Here's an example that works for me (in the Plotly backend).

surface(-10:10, -10:10, (x, y) -> x^2 - y^2, showaxis = false)

Upvotes: 1

axis=([], false) should do the trick

Upvotes: 13

Michael K. Borregaard
Michael K. Borregaard

Reputation: 8044

You can almost but not quite get rid of them with ticks = false.

Upvotes: 8

Related Questions