gauravlochab commited on
Commit
b069ea1
·
1 Parent(s): d5ee048

fix:range change

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1392,13 +1392,13 @@ def create_combined_roi_time_series_graph(df):
1392
  )
1393
  )
1394
 
1395
- # Update y-axis with fixed range for ROI (-200% to +200% for better readability)
1396
  fig.update_yaxes(
1397
  showgrid=True,
1398
  gridwidth=1,
1399
  gridcolor='rgba(0,0,0,0.1)',
1400
- range=[-200, 200], # Set fixed range from -200% to +200% for better readability
1401
- tickformat=".0f", # Format tick labels with no decimal places for cleaner look
1402
  tickfont=dict(size=14, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
1403
  title=None # Remove the built-in axis title since we're using annotations
1404
  )
 
1392
  )
1393
  )
1394
 
1395
+ # Update y-axis with autoscaling for ROI to fit the actual data range
1396
  fig.update_yaxes(
1397
  showgrid=True,
1398
  gridwidth=1,
1399
  gridcolor='rgba(0,0,0,0.1)',
1400
+ autorange=True, # Enable autoscaling to fit the actual data range
1401
+ tickformat=".1f", # Format tick labels with 1 decimal place for better precision
1402
  tickfont=dict(size=14, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
1403
  title=None # Remove the built-in axis title since we're using annotations
1404
  )