Free thought
2019년 8월 26일 월요일
Python (numpy, scipy) Tips
(1) combine two arrays into a 2-column array :
Usually in matplotlib and numpy data is stored as two-column array such as
x-axis is dat[:,0] and y-axis is dat[:,1].
To combine existing x-array and y-array into this form, use
dat = np.column_stack([x,y])
최근 게시물
이전 게시물
홈
피드 구독하기:
글 (Atom)