JAMESPARK3 commited on
Commit
6246663
·
verified ·
1 Parent(s): 4d822b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -549,7 +549,7 @@ def show_temperature_graph(data):
549
  fig.update_layout(
550
  title=None,
551
  xaxis_title='',
552
- yaxis_title='기온 (°C)',
553
  height=600,
554
  width=7200,
555
  showlegend=False,
@@ -567,7 +567,12 @@ def show_temperature_graph(data):
567
  ),
568
  yaxis=dict(
569
  tickfont=dict(size=14),
570
- gridcolor='rgba(0,0,0,0.1)'
 
 
 
 
 
571
  )
572
  )
573
 
 
549
  fig.update_layout(
550
  title=None,
551
  xaxis_title='',
552
+ yaxis_title=None, #'기온 (°C)',
553
  height=600,
554
  width=7200,
555
  showlegend=False,
 
567
  ),
568
  yaxis=dict(
569
  tickfont=dict(size=14),
570
+ gridcolor='rgba(0,0,0,0.1)',
571
+ showticklabels=True, # y축 레이블 표시
572
+ tickformat='d', # 정수 형식으로 표시
573
+ ticksuffix='°C', # 온도 단위 추가
574
+ automargin=True, # y축 자동 마진 설정
575
+ rangemode='tozero' # y축 범위 설정
576
  )
577
  )
578