목록plotly subplots (1)
차밍이

목차 Subplot 기본 구조 그리기 make_subplots 함수를 사용해서 서브플롯 생성 rows와 cols 값을 통해서 몇 행, 몇 열로 그래프를 그릴지 설정하면 됨 import plotly.graph_objects as go from plotly.subplots import make_subplots fig = make_subplots(rows=2, cols=2) # make_subplots를 사용해서 서브플롯 구조를 그림 Subplot에 Subtitle 설정하기 start_cell subplot 번호 시작 위치를 바꿀 수 있음. 설정을 바꾸지 않으면 왼쪽 위부터 시작함 subplot_titles 각 Subplot 마다 부제목을 달아줄 수 있음 fig객체에 add_trace를 통해서 그래프를 추가해..
파이썬/데이터 시각화
2022. 7. 24. 12:43