I would like to plot a plane by specifying its four corners. I can successfully show a plane with its normal pointing in the z-direction like this:
data = [{
'type': 'mesh3d',
'x': [0,1,1,0],
'y': [0,0,1,1],
'z': [0,0,0,0],
'color': 'green',
'opacity': 0.5,
}]
fig = go.Figure(data=data, layout={})
iplot(fig)
However, if I swap the βxβ and βzβ coordinates, which should result in a plane whose normal points in the y-direction, my plane no longer shows:
data = [{
'type': 'mesh3d',
'x': [0,0,0,0],
'y': [0,0,1,1],
'z': [0,1,1,0],
'color': 'green',
'opacity': 0.5,
}]
Any ideas? Thanks.