Hello, I’m new to plotly so I apologize if this is an obvious question.
I’m trying to rename my axis in two 3D subplots. I want them to share the title of the Y-axis and X-axis but not the Z-axis. I tried to use
fig.update_layout(scene=dict(
xaxis_title='X AXIS TITLE',
yaxis_title='Y AXIS TITLE',
zaxis_title='Z AXIS TITLE'))
but only worked for one subplot.
I also tried to use
fig.update_xaxes(title_text="xaxis 1 title", row=1, col=1)
but nothing changed.
Here is a print of how it’s right now and the code that I’m using
OBS: I’m using a pyqt window to display my plots
fig = make_subplots(rows=1, cols=2, specs=[[{'type': 'surface'}, {'type': 'surface'}]], subplot_titles=("Amplitude Entalhe - Solda", "Amplitude Reatância Indutiva Entalhe - Solda"))
#X Gv [dB], y Rot [º], z2 |dAmpXL/AmpXLf| [%], z1 |dAmp/Ampf| [%]
xx1, yy1, zz1 = getcoordinates('primeiroteste_difAmpZ.txt')
xx2, yy2, zz2 = getcoordinates('primeiroteste_difAmpXl.txt')
fig.add_trace(go.Surface(x=xx1, y=yy1, z=zz1, colorscale="Jet"), row=1, col=1)
fig.add_trace(go.Surface(x=xx2, y=yy2, z=zz2, colorscale="Jet"), row=1, col=2)
fig.update_layout(scene=dict(
xaxis_title='X AXIS TITLE',
yaxis_title='Y AXIS TITLE',
zaxis_title='Z AXIS TITLE'))