Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Matlab API surface changes color when loaded by Plotly

Hello All,

I’m brand new to plotly and am trying to use it to display scattered data points on top of a surface. I’m using the suggested command:


to try and maintain the colormap of the plot as I need both the scattered points and the surface to use the same colorscale. However, when Plotly loads it the surface ends up being a different color palette. Note I want to do this for many plots programmatically and thus don’t want to spend the time using the online editor to modfiy the plots in plotly.

Any suggestions would be much appreciated.