plotly_matlab icon indicating copy to clipboard operation
plotly_matlab copied to clipboard

scatter and scatter3 don't format correctly

Open jnj16180340 opened this issue 10 years ago • 1 comments

% 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()
matlab-2d plotly-2d
matlab-3d plotly-3d

jnj16180340 avatar Jul 21 '15 00:07 jnj16180340

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.)

vkehayas avatar Apr 07 '18 21:04 vkehayas