Skip to content

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

@VolKa79

Description

@VolKa79

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

Metadata

Metadata

Labels

⭐⭐⭐ multiplierIssues that could close multiple related issues at once

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions