An example with the built-in python iter function: lineObjects = plt.plot(x, y) plt.legend(iter(lineObjects), ('foo', 'bar', 'baz'))`.
確定! 回上一頁