I have three variables as coordinates in space and a fourth variable being color. I want to assign each color to each point in space. In python this can be done as follows:
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np from numpy import random fig = plt.figure() ax = fig.add_subplot(111, projection='3d') x = random.rand(50) y = random.rand(50) z = random.rand(50) c = random.rand(50) s = ax.scatter(x, y, z, c=c, cmap=plt.viridis()) fig.colorbar(s) plt.show()
How can I reproduce same results in Julia using plotly() from Plots.jl?