[问题] mplot3d 点击legend问题

楼主: s90104123 (也许当时忙着微笑和哭泣)   2020-06-06 21:33:32
大家好
小弟我想要在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 但是他范例是有东西的
不知道有没有大大知道如何去实作
感激不尽~
楼主: s90104123 (也许当时忙着微笑和哭泣)   2020-06-09 14:30:00
用get_patches() 已解决

Links booklink

Contact Us: admin [ a t ] ucptt.com