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])
 

댓글 없음:

댓글 쓰기