Skip to content

Circle using plot(x,y) with parametric functions not working correctly #302

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 5, 2021 · 1 comment
Closed
Assignees
Labels
⭐⭐⭐ multiplier Issues that could close multiple related issues at once

Comments

@VolKa79
Copy link

VolKa79 commented Aug 5, 2021

When using parametric function for plotting a circle like:

r = 2;
xc = 4;
yc = 3;
theta = linspace(0,2*pi);
x = r*cos(theta) + xc;
y = r*sin(theta) + yc;
plot(x,y)
fig2plotly();

We get circle plotted in polar system of coordinates
iss1

Suppose this can be because in this case plotly figure data.type is 'scatterpolar' instead of 'scatter' for other usage of plot(x,y)
Example of circle using parametric and plot(x,y) is in:
https://www.mathworks.com/help/matlab/ref/plot.html#buqplgq-1

@VolKa79 VolKa79 added the ⭐⭐⭐ multiplier Issues that could close multiple related issues at once label Aug 5, 2021
@gilbertogalvis gilbertogalvis self-assigned this Aug 5, 2021
gilbertogalvis pushed a commit that referenced this issue Aug 6, 2021
@gilbertogalvis
Copy link
Contributor

Screen Shot 2021-08-05 at 8 32 57 PM

Screen Shot 2021-08-05 at 8 33 36 PM

Screen Shot 2021-08-05 at 8 34 01 PM

FIXED! . Now there is no confusion between normal axes and porlar axes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐⭐⭐ multiplier Issues that could close multiple related issues at once
Projects
None yet
Development

No branches or pull requests

3 participants