5
jupyter notebook에서 matshow()의 무화과 크기를 변경하는 방법은 무엇입니까? Matplotlib matshow의 figsize 변경 방법
예를 들어,이 코드 변경 그림 크기%matplotlib inline
import matplotlib.pyplot as plt
import pandas as pd
d = pd.DataFrame({'one' : [1, 2, 3, 4, 5],
'two' : [4, 3, 2, 1, 5]})
plt.figure(figsize=(10,5))
plt.plot(d.one, d.two)
그러나 아래 코드는 plt.figure()
이 수치와 함께 할 수 있도록
%matplotlib inline
import matplotlib.pyplot as plt
import pandas as pd
d = pd.DataFrame({'one' : [1, 2, 3, 4, 5],
'two' : [4, 3, 2, 1, 5]})
plt.figure(figsize=(10,5))
plt.matshow(d.corr())