0
matplotlib 문서를 읽으면 스타일이 matplotlib (matplotlib.style)의 모듈 인 것처럼 보입니다. matplotlib.pyplot.style.use ('시본')스타일은 matplotlib 또는 matplotlib.pyplot의 모듈입니까?
나는 스타일 모듈과 관련된 (및 호출)을하기 matplotlib 할 수있는 방법을 이해하지 않습니다
그러나, 나는이 코드를 본 적이 .pyplot 모듈.
감사 할 수 있습니다! 객체 지향 프로그래밍 언어에서'matplotlib.pyplot'의'style' 모듈을 가져 오면'style'이'matplotlib.pyplot'의 속성이됩니다. – titiree
pyplot은 클래스가 아니기 때문에'style'은 속성이 될 수 없습니다. 그것은 여전히 (하위) 모듈입니다. 이 하위 모듈은 pyplot의 네임 스페이스에 있습니다. – ImportanceOfBeingErnest