Hiding Axis Titles and nticks

I am creating a dashboard that graphs a couple of trace items onto a mesh3d plot. For these plots I am attempting to take snapshots of a single plane (XZ, YZ, XY) view using dash’s camera controls. Unfortunately, the spare axis is continuously in the way. I have consulted the documentation below, but there doesn’t seem to be a wide to hide the axis title and tick marks to hide a particular axis. Does this capability exist in the current version of dash? I am currently using dash 1.7.0.

Hi @plopez9,
this kind of visualizations usually looks better in orthographic projection, for example

import plotly.graph_objects as go
import pandas as pd

# Read data from a csv
z_data = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/api_docs/mt_bruno_elevation.csv')

fig = go.Figure(data=go.Surface(z=z_data, showscale=False))
fig.update_layout(
    title='Mt Bruno Elevation',
    width=400, height=400,
    margin=dict(t=30, r=0, l=20, b=10)
)

name = 'eye = (x:2.5, y:0., z:0.)'
camera = dict(
    eye=dict(x=2.5, y=0., z=0.)
)

fig.update_layout(scene_camera=camera, title=name, scene_camera_projection_type='orthographic')
fig.show()

image

In addition to the tutorial you mentioned you might also be interested in

(but we should add an example with orthographic projection)

Thank you for the reply. I will give this a try. Does this need the latest version of plotly or dash for the “orthographic” to work. Judging from some past forum posts this seems like a relatively new feature?

It was included in plotly.js 1.45, which was released in February https://github.com/plotly/plotly.js/releases/tag/v1.45.0. If it’s possible for you we encourage users to update their version of plotly on a regular basis to benefit from new features and bug fixes.