igormolybog commited on
Commit
e696b88
·
verified ·
1 Parent(s): 9122880

Update app.py

Browse files

increased fonts

Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -111,7 +111,25 @@ else:
111
  text_auto='.2f',
112
  title=f"Avg Heatmap for {len(name_sel)} Faculty"
113
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  fig.update_yaxes(autorange='reversed')
115
- # Set a taller figure height for wide layout
116
- fig.update_layout(height=800, margin=dict(l=70, r=70, t=70, b=70))
 
 
 
117
  st.plotly_chart(fig, use_container_width=True)
 
111
  text_auto='.2f',
112
  title=f"Avg Heatmap for {len(name_sel)} Faculty"
113
  )
114
+
115
+ # 1) Set a global base font size (this will apply to axis titles, legend, etc.)
116
+ fig.update_layout(
117
+ font=dict(size=16), # ← increases most text
118
+ title_font_size=24 # ← specifically make the title even larger
119
+ )
120
+
121
+ # 2) Increase just the tick label size on each axis
122
+ fig.update_xaxes(tickfont=dict(size=14))
123
+ fig.update_yaxes(tickfont=dict(size=14))
124
+
125
+ # 3) Increase the size of the numeric annotations in the heatmap cells
126
+ fig.update_traces(textfont=dict(size=14))
127
+
128
+ # 4) Keep your other layout tweaks
129
  fig.update_yaxes(autorange='reversed')
130
+ fig.update_layout(
131
+ height=800,
132
+ margin=dict(l=70, r=70, t=70, b=70)
133
+ )
134
+
135
  st.plotly_chart(fig, use_container_width=True)