"Pyplot 박스플롯"의 두 판 사이의 차이

(새 문서: ==개요== ;matplotlib boxplot <source lang='python'> import numpy as np import matplotlib.pyplot as plt samp1 = np.random.normal(loc=0, scale=1, size=100) samp2 = np.random.normal(...)
 
19번째 줄: 19번째 줄:
==같이 보기==
==같이 보기==
* [[matplotlib]]
* [[matplotlib]]
* [[boxplot]]


[[분류: matplotlib]]
[[분류: matplotlib]]

2017년 12월 13일 (수) 13:41 판

1 개요

matplotlib boxplot
import numpy as np
import matplotlib.pyplot as plt

samp1 = np.random.normal(loc=0, scale=1, size=100)
samp2 = np.random.normal(loc=1, scale=2, size=100)
samp3 = np.random.normal(loc=0.3, scale=1.2, size=100)
f, ax = plt.subplots(1, 1, figsize=(8,6))
ax.boxplot((samp1, samp2, samp3))
ax.set_xticklabels(['sample 1','sample 2','sample 3'])
plt.show()

Matplotlib-boxplot-1.png

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}