0
중앙 부분 플롯의 위치에 범례를 넣고 싶습니다 (제거하십시오).범례를 서브 플롯의 자리에 놓기
import matplotlib.pylab as plt
import numpy as np
f, ax = plt.subplots(3,3)
x = np.linspace(0, 2. * np.pi, 1000)
y = np.sin(x)
for axis in ax.ravel():
axis.plot(x, y)
legend = axis.legend(loc='center')
plt.show()
내가 중심 플롯을 숨기는 방법을 모르겠어요 이 코드를 썼다. 왜 전설이 나타나지 않습니까?
이 링크는 코드 몇 가지 문제가 있습니다 http://matplotlib.org/1.3.0/examples/pylab_examples/legend_demo.html