반응형
    
    
    
  
														Notice
														
												
											
												
												
													Recent Posts
													
											
												
												
													Recent Comments
													
											
												
												
													Link
													
											
									| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
													Tags
													
											
												
												- web 용어
- web
- bccard
- broscoding
- inorder
- CES 2O21 참가
- KNeighborsClassifier
- html
- web 개발
- 자료구조
- web 사진
- mglearn
- CES 2O21 참여
- vscode
- 재귀함수
- Keras
- 결합전문기관
- classification
- discrete_scatter
- cudnn
- postorder
- paragraph
- 웹 용어
- C언어
- pycharm
- tensorflow
- 데이터전문기관
- 머신러닝
- java역사
- 대이터
													Archives
													
											
												
												- Today
- Total
bro's coding
matplotlib.dist_table 본문
반응형
    
    
    
  dist_table=np.array([[(((data[i]-data[j])**2).sum())**0.5 for j in range(150)]for i in range(150)])
array([[0.        , 0.53851648, 0.50990195, ..., 4.45982062, 4.65080638,
        4.14004831],
       [0.53851648, 0.        , 0.3       , ..., 4.49888875, 4.71805044,
        4.15331193],
       [0.50990195, 0.3       , 0.        , ..., 4.66154481, 4.84871117,
        4.29883705],
       ...,
       [4.45982062, 4.49888875, 4.66154481, ..., 0.        , 0.6164414 ,
        0.64031242],
       [4.65080638, 4.71805044, 4.84871117, ..., 0.6164414 , 0.        ,
        0.76811457],
       [4.14004831, 4.15331193, 4.29883705, ..., 0.64031242, 0.76811457,
        0.        ]])
fig=plt.figure(figsize=[10,10])
plt.imshow(dist_table,cmap='gray')
plt.colorbar()
fig=plt.figure(figsize=[10,10])
plt.imshow(dist_table,cmap='gray_r',vmin=0,vmax=dist_table.max())
plt.colorbar()
plt.plot(dist_table[0])
plt.plot(dist_table)
반응형
    
    
    
  '[IT] > python.matplotlib' 카테고리의 다른 글
| finance (0) | 2020.06.09 | 
|---|---|
| matplotlib.animation_2 (1) | 2020.06.08 | 
| matplotlib.animation (0) | 2020.06.08 | 
| matplotlib.font_manager, rc(한글 사용하기) (0) | 2020.04.06 | 
| matplotlib.axis(축 다루기) (0) | 2020.04.03 | 
| matplotlib.savefig(그래프 저장하기) (0) | 2020.04.03 | 
| matplot.annotate(화살표, 그리드, 텍스트 그리기) (0) | 2020.04.03 | 
| matplotlib.subplot(그래프 여러개 그리기 2) (0) | 2020.04.03 | 
			  Comments
			
		
	
               
           
					
					
					
					
					
					
				 
								