Get data from plot with matplotlib

后端 未结 2 1792
既然无缘
既然无缘 2020-11-30 02:33

I\'m using matplotlib in python to build a scatter plot.

suppose I have the following 2 data lists.

X=[1,2,3,4,5]

Y=[6,7,8,9,10]

2条回答
  •  抹茶落季
    2020-11-30 03:19

    Can do this using mpld3 now in a few lines:

    https://mpld3.github.io/examples/html_tooltips.html

提交回复
热议问题