I want to change the colour scheme of the 3D surface plot in the plotly python. Plotly assigns the colour scheme by default as shown in figure below.
Here is my code
import import plotly.graph_objects as go
import pandas as pd
data = pd.read_csv('\Data.csv')
data.set_index("years", inplace = True)
figure = go.Figure(data=[go.Surface(z=data.values)])
figure.update_layout(
scene = dict(
xaxis = dict(
title = 'Months',
#nticks = 5,
autorange='reversed',
showgrid=True,
gridwidth=1,
gridcolor='Blue',
ticktext = data.columns,
tickvals= list(range(0,data.shape[1]))),
yaxis = dict(
title = 'years',
showgrid=True,
gridwidth=1,
gridcolor='Blue',
ticktext = data.index,
tickvals= list(range(0,data.shape[0]))),
zaxis = dict(
title = 'Discharge (Cumecs)',
#showgrid=True,
gridwidth=1,
gridcolor='Blue')),
tilte = 'Plot 1'
)