I want to make a scatter plot of some data where I colour the point according to a class/familiy. In vanilla matplotlib I can do this with
hue_list=[colours[k] for k in familiy if k in colours] ax.scatter(x, y, z, c=hue_list)
using the c kwarg to give a list of the colours for each point. How can I achieve a similar result in plotly?