作者s90104123 (也许当时忙着微笑和哭泣)
看板Python
标题[问题] mplot3d 点击legend问题
时间Sat Jun 6 21:33:32 2020
大家好
小弟我想要在mplot3d 点击右上角legend的东西的时候
按一下消失 再按一下显示
https://matplotlib.org/3.1.1/gallery/event_handling/legend_picking.html
像以上网页那样 但是他好像是2d的
https://paste.ofcode.org/PP8WaRGa86gjz3u5k5pctn
以上是我的code
有试过网页范例leg.get_lines() 可是出来是空的list 但是他范例是有东西的
不知道有没有大大知道如何去实作
感激不尽~
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.235.105.215 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1591450414.A.118.html
1F:→ s90104123: 用get_patches() 已解决 06/09 14:30