배경을 숨기면서 플롯을 사용하고 있습니다
paper_bgcolor='rgba(255,255,255,1)',
plot_bgcolor='rgba(255,255,255,1)',
불행하게도 레이아웃의 참조 가이드를 읽고 축을 추가 할 수 없었습니다 (왼쪽과 하단의 xy 라인 만. 전체 코드 :
fig = px.box(pd_data, x="Epoch", y="Cosine similarity", color="Type",
notched=True, # used notched shape
title="Box plot of Cos similarity",
hover_data=["Pair"] # add day column to hover data
)
fig.update_layout(title_text="",
paper_bgcolor='rgba(255,255,255,1)',\
plot_bgcolor='rgba(255,255,255,1)',\
title_font_size=30)
데이터 샘플을 공유하지 않았으므로 box-plots / 의 설정을 사용해야합니다 . 어쨌든 다음 showline=True
과 같이 두 축 모두에 대해 설정해야합니다 .
fig.update_xaxes(showline=True, linewidth=2, linecolor='black')
fig.update_yaxes(showline=True, linewidth=2, linecolor='black')
import plotly.express as px
df = px.data.tips()
fig = px.box(df, x="time", y="total_bill", points="all")
f = fig.full_figure_for_development(warn=False)
fig.update_layout(title_text="",
paper_bgcolor='rgba(255,255,255,1)',\
plot_bgcolor='rgba(255,255,255,1)',\
title_font_size=30)
fig.update_xaxes(showline=True, linewidth=2, linecolor='black')
fig.update_yaxes(showline=True, linewidth=2, linecolor='black')
fig.show()
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다