Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plots.jl - Turn off axis and grid lines

Tags:

julia

plots.jl

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!

like image 818
nalyd88 Avatar asked Jun 17 '17 19:06

nalyd88


2 Answers

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

like image 68
Sebastian Kilde Löfgren Avatar answered Sep 28 '22 09:09

Sebastian Kilde Löfgren


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)
like image 25
Vectornaut Avatar answered Sep 28 '22 09:09

Vectornaut