[問題] mplot3d 點擊legend問題
大家好
小弟我想要在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://www.ptt.cc/bbs/Python/M.1591450414.A.118.html
→
06/09 14:30,
5年前
, 1F
06/09 14:30, 1F
Python 近期熱門文章
PTT數位生活區 即時熱門文章