You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plotly supports sending custom colorscales as well as the predefined ones. It might be nice to try and support that.
For instance, the following request body to the Plotly API seems to do what we expect (POST https://api.plot.ly/v2/plots ; you need to set the headers Plotly-Client-Platform to something (eg. scala), Content-Type to application/json and use basic auth with your username and password):
@srstevenson Mostly raising this so we are aware of it. At the moment, I think it's fine to just stick to a string value for the colorscale, since the more complete implementation doesn't alter the interface.
Plotly supports sending custom colorscales as well as the predefined ones. It might be nice to try and support that.
For instance, the following request body to the Plotly API seems to do what we expect (
POST https://api.plot.ly/v2/plots
; you need to set the headersPlotly-Client-Platform
to something (eg.scala
),Content-Type
toapplication/json
and use basic auth with your username and password):The
colorscale
field seems to be an array of 2-arrays containing a z-value and a color.I think the following interface would work:
The text was updated successfully, but these errors were encountered: