Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs - 3d line problems #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danton267 opened this issue Oct 23, 2021 · 1 comment
Closed

docs - 3d line problems #444

danton267 opened this issue Oct 23, 2021 · 1 comment

Comments

@danton267
Copy link
Member

tiledlayout(1,2)

% Left plot
ax1 = nexttile;
t = 0:pi/20:10*pi;
xt1 = sin(t);
yt1 = cos(t);
plot3(ax1,xt1,yt1,t)
title(ax1,'Helix With 5 Turns')

% Right plot
ax2 = nexttile;
t = 0:pi/20:10*pi;
xt2 = sin(2*t);
yt2 = cos(2*t);
plot3(ax2,xt2,yt2,t)
title(ax2,'Helix With 10 Turns')

fig2plotly(gcf);

Right subplot not plotted.


x = rand(1,10);
y = rand(1,10);
z = duration(rand(10,1),randi(60,10,1),randi(60,10,1));

plot3(x,y,z,'o','DurationTickFormat','mm:ss')
xlabel('X')
ylabel('Y')
zlabel('Duration')
grid on

fig2plotly(gcf);

Warning in output and the plot is wrong.

Invalid data type. First argument must be numeric or logical.
We had trouble parsing the line object.
This trace might not render properly.
gilbertogalvis pushed a commit that referenced this issue Oct 25, 2021
gilbertogalvis added a commit that referenced this issue Oct 25, 2021
@gilbertogalvis
Copy link
Contributor

This issue was fixed by PR #460

Result for first test code

Screen Shot 2021-10-25 at 6 11 37 PM

Result for second test code

Screen Shot 2021-10-25 at 6 14 51 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants