반응형
파이썬 스케일이 다른 두개의 값 그리기
코드
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
fig, ax1 = plt.subplots() | |
ax1.plot(df["..."]) | |
# ... | |
ax2 = ax1.twinx() | |
ax2.plot(df["Market"]) | |
ax2.set_ylim([0, 5]) | |
# http://matplotlib.org/examples/api/two_scales.html |
반응형
'Programming > Python' 카테고리의 다른 글
C를 Python으로 Wrapping하는 방법 (0) | 2017.12.10 |
---|---|
파이썬 HTML 파싱 하는 방법 (0) | 2017.11.02 |
파이썬 디렉토리 생성 코드 (0) | 2017.11.02 |
파이썬 데이터 읽기 (pandas) (0) | 2017.11.02 |
[Python] Flask Response Encoding 문제 (0) | 2017.02.07 |