Skip to content

polarplot() not supported #240

Closed
Closed
@xarico10

Description

@xarico10

When using polarplot() to plot a line in polar coordinates, an error is being printed.

theta = 0:0.01:2*pi;
rho = sin(2*theta).*cos(2*theta);
polarplot(theta,rho)

fig2plotly(gcf, 'offline', false);

The previous code prints the following error:

Error using response_handler (line 31)
Expecting (x, y) pairs

Error in makecall (line 32)
    response_handler(resp);

Error in plotly (line 28)
response = makecall(args, origin,
structargs);

Error in plotlyfig/plotly (line 449)
                response =
                plotly(obj.data, args);

Error in fig2plotly (line 49)
p.plotly;

Error in untitled10 (line 6)
fig2plotly(gcf, 'offline', false);

Expected plot:
Captura de Pantalla 2021-07-30 a la(s) 7 06 22 p  m

Examples on using polarplot() can be found on:
https://www.mathworks.com/help/matlab/ref/polarplot.html#responsive_offcanvas

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions