-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Windrose example from plot.ly not working #1131
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
Comments
Hi @rr5577 , thanks for taking the time to report this. Yeah, it looks like the Plotly.js JavaScript library is choking when plotly.py is passed a pandas series or numpy array. And I can also reproduce you're issue of not being able to update the title properties. These issues should be addressed when this trace type is replaced with a new trace that uses the Polar 2.0 infrastructure. See plotly/plotly.js#2810 for some discussion. I'll leave this issue open until the new trace is released and included with plotly.py. |
plotly.py 3.3 is going to include plotly.js 1.41 which includes the new |
Thanks for the update, looking forward to trying it! |
import plotly.graph_objs as go
fig = go.FigureWidget()
fig.add_barpolar(r=[1, 3, 2], theta=[0, 45, 90])
fig.add_barpolar(r=[3, 5, 1], theta=[0, 45, 90])
fig.add_barpolar(r=[2, 1, 6], theta=[0, 45, 90])
fig See plotly/documentation#1100 for progress on updating the windrose documentation to use |
This works great now (dynamically updating the plot as well). Only the code from the python example specifying the (layout) axis seems to be obsolete (it doesn´t do anything when changed).
|
I just did a fresh install to try plotly.py and wanted to try the pandas windrose example from the plotly site ( https://plot.ly/pandas/wind-rose-charts/ ).
but i only get a blank output cell.
if i remove the

barmode="stack"
kwarg, the plot renders, but without data:Plotly Version: 3.1.1

Update:
i managed to get the plot and data to display, it seems using the pandas columns for "r" and "t" values doesn´t work (as in #1116).
However, dynamically updating the plot (e.g. changing title color) doesn´t work.

The text was updated successfully, but these errors were encountered: