79371261

Date: 2025-01-20 12:13:00
Score: 2
Natty:
Report link

if you only want to update one trace, you still have to provide an array containing an array for that one trace: update = {'x': [[x]], 'y': [[y]]};

OMG, this saved my bacon, thanks! I've been struggling for a half day(!) trying to update a couple of traces in a plotly polar plot on mouse-mnove and, although my overall syntax was spot on, I simply did not know that DOUBLE square brackets would be needed round such values. Now I know how it's done, I can get on with the rest of the coding needed. Thanks again!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rob Bannstrom