Skip to content

plot3() for two sets of lines not working correctly #319

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
VolKa79 opened this issue Aug 6, 2021 · 1 comment
Closed

plot3() for two sets of lines not working correctly #319

VolKa79 opened this issue Aug 6, 2021 · 1 comment
Assignees

Comments

@VolKa79
Copy link

VolKa79 commented Aug 6, 2021

For two sets of parametric lines, like:

t = 0:pi/500:pi;
xt1 = sin(t).cos(10t);
yt1 = sin(t).sin(10t);
zt1 = cos(t);

xt2 = sin(t).cos(12t);
yt2 = sin(t).sin(12t);
zt2 = cos(t);

plot3(xt1,yt1,zt1,xt2,yt2,zt2)

fig2plotly();

We getting just polar coordinates axis:
is2

And message:
Index exceeds the number of array elements (1).
We had trouble parsing the line object.
This trace might not render properly.

More about plot3()
https://www.mathworks.com/help/matlab/ref/plot3.html

@gilbertogalvis gilbertogalvis self-assigned this Aug 7, 2021
gilbertogalvis pushed a commit that referenced this issue Aug 7, 2021
@gilbertogalvis
Copy link
Contributor

With the PR #324 this issue is fixed

Screen Shot 2021-08-07 at 12 08 54 PM

Screen Shot 2021-08-07 at 12 12 34 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