gauravlochab
commited on
Commit
·
b0d77ab
1
Parent(s):
5132f91
chore:update graphs y axis
Browse files
app.py
CHANGED
@@ -1354,12 +1354,12 @@ def create_combined_roi_time_series_graph(df):
|
|
1354 |
)
|
1355 |
)
|
1356 |
|
1357 |
-
# Update y-axis with
|
1358 |
fig.update_yaxes(
|
1359 |
showgrid=True,
|
1360 |
gridwidth=1,
|
1361 |
gridcolor='rgba(0,0,0,0.1)',
|
1362 |
-
|
1363 |
tickformat=".1f", # Format tick labels with 1 decimal place for better precision
|
1364 |
tickfont=dict(size=14, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
|
1365 |
title=None # Remove the built-in axis title since we're using annotations
|
@@ -2132,13 +2132,12 @@ def create_combined_time_series_graph(df):
|
|
2132 |
)
|
2133 |
)
|
2134 |
|
2135 |
-
# Update y-axis with
|
2136 |
fig.update_yaxes(
|
2137 |
showgrid=True,
|
2138 |
gridwidth=1,
|
2139 |
gridcolor='rgba(0,0,0,0.1)',
|
2140 |
-
#
|
2141 |
-
autorange=True, # Enable autoscaling to fit the data
|
2142 |
tickformat=".2f", # Format tick labels with 2 decimal places
|
2143 |
tickfont=dict(size=14, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
|
2144 |
title=None # Remove the built-in axis title since we're using annotations
|
|
|
1354 |
)
|
1355 |
)
|
1356 |
|
1357 |
+
# Update y-axis with clipping at -5
|
1358 |
fig.update_yaxes(
|
1359 |
showgrid=True,
|
1360 |
gridwidth=1,
|
1361 |
gridcolor='rgba(0,0,0,0.1)',
|
1362 |
+
range=[-5, 10], # Clip bottom at -5, reasonable top at 10
|
1363 |
tickformat=".1f", # Format tick labels with 1 decimal place for better precision
|
1364 |
tickfont=dict(size=14, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
|
1365 |
title=None # Remove the built-in axis title since we're using annotations
|
|
|
2132 |
)
|
2133 |
)
|
2134 |
|
2135 |
+
# Update y-axis with clipping at -50
|
2136 |
fig.update_yaxes(
|
2137 |
showgrid=True,
|
2138 |
gridwidth=1,
|
2139 |
gridcolor='rgba(0,0,0,0.1)',
|
2140 |
+
range=[-50, 200], # Clip bottom at -50, reasonable top at 200
|
|
|
2141 |
tickformat=".2f", # Format tick labels with 2 decimal places
|
2142 |
tickfont=dict(size=14, family="Arial, sans-serif", color="black", weight="bold"), # Adjusted font size
|
2143 |
title=None # Remove the built-in axis title since we're using annotations
|