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
Anyway, I am sure that the argument meant to be passed to this function is the [colorscale]_rgb list ... which again throws a TypeError, but this can be fixed by editing one line:
C = list(map(np.uint8, np.array(cmap_rgb[k])*255))
Then it works.
The text was updated successfully, but these errors were encountered:
Hi,
The example code in matplotlib_to_plotly() (https://plotly.com/python/v3/matplotlib-colorscales/) doesn't work due to a TypeError.
Anyway, I am sure that the argument meant to be passed to this function is the [colorscale]_rgb list ... which again throws a TypeError, but this can be fixed by editing one line:
C = list(map(np.uint8, np.array(cmap_rgb[k])*255))
Then it works.
The text was updated successfully, but these errors were encountered: