I am making a Scatter 3D pyplot using arrays with float numbers
x = c_icrs.galactic.cartesian.x.value
y = c_icrs.galactic.cartesian.y.value
z = c_icrs.galactic.cartesian.z.value
Where x,y,z are:
x:array([ -65.1525587 , -1.76919179, 3.87621068, -193.69267564, -8.49586587])
y:array([ 99.25870537, -1.91258061, 1.04225814, -96.36986244, 9.24999572])
z:array([ 59.09744472, -0.40753885, 10.51755917, -64.43345929, 21.251354 ])
The plot:
fig = plt.figure(figsize=(8,8))
ax = fig.add_subplot(projection='3d')
ax.set_title("Title")
ax.set_xlabel('X [pc]')
ax.set_ylabel('Y [pc]')
ax.set_zlabel('Z [pc]')
scatter1 = ax.scatter3D(x,y,z, s = 400, marker = '*',c=[1,2,3,4,5])
legend1 = ax.legend(['a','b','c','d','e'], title="Legend")
scatter2 = ax.scatter3D(0,0,0, s = 200, color = 'orange')
How do I add the other markers on the legend? only the first one is showing (a)