plotly_matlab
plotly_matlab copied to clipboard
scatter and scatter3 don't format correctly
% In matlab r2014b,
[X,Y,Z] = sphere(16);
x = [0.5*X(:); 0.75*X(:); X(:)];
y = [0.5*Y(:); 0.75*Y(:); Y(:)];
z = [0.5*Z(:); 0.75*Z(:); Z(:)];
% 2d scatter
scatter(x,y,6,'go')
hold on
scatter(x,y,72,'ko')
fig2plotly()
% 3d scatter
hold off
scatter3(x,y,z,6,'bo')
hold on
scatter3(x,y,z,36,'go')
fig2plotly()
![]() |
![]() |
|---|---|
![]() |
![]() |
Has there been any progress on this?
I still get a figure like the bottom right with scatter3.
Running Matlab 2017a, in a Jupyter notebook with the imatlab kernel.
(Using plot3 with a marker instead of a line works so it's not a big deal after all.)



