Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 PlotWidget 中删除视觉效果(例如线条)?
当您调用 plot() 时,我尝试从 PlotWidget 添加 Line 对象的任何地方显式删除 Line,但这不会改变显示画布上的任何内容。
将其父级设置为无:
line_obj.parent = None