plt.plot meaning of [:,0] and [:,1]

This question already has an answer here:

  • Understanding Python's slice notation 29 answers
  • Python Array Slice With Comma? 3 answers

  • It is notation used in Numpy/Pandas.

    [ : , 0 ] meas (more or less) [ first_row:last_row , column_0 ] - you have 2-dimensional list/matrix/array and you get all values in column 0 (from all rows).

    链接地址: http://www.djcxy.com/p/26750.html

    上一篇: Python字符串数组如何工作?

    下一篇: plt.plot [:,0]和[:,1]的含义