我正在尝试运行Matplotlib中的演示代码: the 。当我点击图例上的线条时,事件'pick_event‘似乎没有被触发。# Enable picking on the legend to toggle the legended line on and offimport numpy as np
import matplotlib.pyplot
我想用同一图中不同的数据集创建一个3D散点图,并用它们的标签创建一个图例。我面临的问题是我不能正确地添加图例,并且我得到了一个带有空标签的图,如图所示:/usr/lib/pymodules/python2.7/matplotlib/legend.py:610: UserWarning: Legend does not support请在下面找到我到目前为止已经尝试过的示例演示:
import matplotlib.pyplot