Closed
Description
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);
Examples on using polarplot()
can be found on:
https://www.mathworks.com/help/matlab/ref/polarplot.html#responsive_offcanvas