
Youtube 이수안컴퓨터연구소의
Plotly 한번에 끝내기 - 모던한 인터렉티브 시각화 라이브러리 동영상을 보고 요약한 코드입니다!
import plotly.io as pio
import plotly.express as px
import plotly.graph_objects as go
import plotly.figure_factory as ff
from plotly.subplots import make_subplots
from plotly.validators.scatter.marker import SymbolValidator
# go.Heatmap
fig = go.Figure(data=go.Heatmap(
x = , # x 축값
y = , # y 축값
z = ,
))
fig.show()
# annotated heatmap
# 값을 나타내주는 heatmap
fig = ff.create_annotated_heatmap(
x = ,
y = ,
z = ,
)
fig.show()
# density heatmap
fig = px.density_heatmap(
data,
x = ,
y = ,
nbinsx = , nbinsy = , # 좀 더 촘촘하게 만들 수 있음
color_continous_scale = , # 색깔 지정 viridis/
marginal_x = , marginal_y = , # marginal 정보, histogram/box/violin/..
facet_col = , facet_row = ,
histfunc = , # avg
)
fig.show()