points = go.Scatter3d(
x=[-0.25, 0.75, -0.25, -0.75, -1.25, -1.75, -1.25, -1.75, -1.25, -1.75, -1.75, -0.75, -1.25, -0.25],
y=[-0.75, 0.75, -0.75, -0.75, -0.75, -0.75, -0.25, -0.25, 0.25, 0.25, 0.75, 0.75, 0.75, 0.75],
z=[0.25, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75, 0.75],
mode='markers',
hoverinfo = 'text',
text=t,
textposition='bottom center',
marker=dict(
size=point_size,
color=color_list,
cmax=CMAX,
cmin=1,
colorbar=dict(
title=title,
),
colorscale='rdylgn',
opacity=OPACITY
)
)
b = vertex = go.Scatter3d(
x = [-1, 1, 1, -1, -1, 1, 1, 1],
y = [1, 1, 0, 0, 1, 1, 0, 0,1],
z = [0, 0, 0, 0, 20, 20, 20, 20],
mode='markers',
hoverinfo = 'text',
opacity=0,
marker=dict(
size=1,
color='red',
)
)
c = arrow = go.Mesh3d(
x = [0, 1*(5/180), 0, 0, -1*(5/180), -1*(5/180), 0, 0],
y = [1*(5/180), 0, -1*(5/180), -1*(2/180),\
-1*(2/180), 1*(2/180), 1*(2/180),0],
z = [-0.459, -0.459, -0.4594,-0.4594,\
-0.459, -0.459, -0.4594, -0.4594],
i = [0, 1, 6, 6],
j = [1, 2, 5, 4],
k = [7, 7, 4, 3],
color= 'grey',
name='View',
hoverinfo = 'name',
opacity=1
)
data = [a b c ]
layout = go.Layout(showlegend=False,
scene=dict(
aspectmode='data'
))
fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename = FILE_PATH, auto_open = True)
If i plot like this i am only getting data[1] and data[2] getting plotted and data[3] which is c is not getting plotted in the final one. Can you please help in this regard?