Open openafox opened 5 years ago
Temporary Workaround:
A bit more digging has shown that the theta values are being plotted as Radians even though Degrees are default. Setting thetaunit = "degrees"
does not work but thetaunit = "radians"
and converting np.degreees()
values beforehand does work.
confirming this is still an issue in plotly==5.1.0
Some further investigation seems to indicate that this is not just an issue of radians/degrees, but rather of array types:
Code below produces different traces depending on whether theta is given as a list or numpy array!
f = go.FigureWidget()
f.add_scatterpolar(r=[10., 15., 15.], theta=[ 0., -45., 45.], thetaunit='degrees', mode='markers')
f.add_scatterpolar(r=[10., 15., 15.], theta=np.array([ 0., -45., 45.]), thetaunit='degrees', mode='markers')
f
plotly==4.1.1 jupyter==1.0.0 ipython==7.8.0
Plotting a polar in a subplot works fine (#758 resolved in 4.1.1?) but wrapping a polar figure in a FigureWidget and using display causes theta values to become very strange, scattering the data. This happens for subplots and solo polar plots. This would appear to be a Bug. Any thoughts on a workaround?