Python Matplotlib Slider is drawn but doesnt move or update

后端 未结 1 542
孤城傲影
孤城傲影 2021-01-21 10:18

I am trying to draw a scatter plot with a point that moves based on a parameter adjusted by a slider. I need the parameter to be the position in a list of the coordinates. I hav

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-21 10:56

    You have to keep a reference to the Slider object around or it (and it's call backs) get garbage collected. See long discussion at https://github.com/matplotlib/matplotlib/issues/3105.

    The documentation on this has been clarified for 1.4.

    0 讨论(0)
提交回复
热议问题