jmercat commited on
Commit
0bc5996
·
1 Parent(s): e683d10

Change window centering

Browse files
scripts/scripts_utils/plotly_interface.py CHANGED
@@ -244,14 +244,14 @@ def prediction_plot(
244
  n_samples: int = 1,
245
  use_biaser: bool = True,
246
  ) -> go.Figure:
247
- range_radius = 50
248
  if use_biaser:
249
  risk_level = float(risk_level)
250
  else:
251
  risk_level = None
252
  layout = go.Layout(
253
  xaxis=dict(
254
- range=[-2*range_radius, 2*range_radius],
255
  autorange=False,
256
  zeroline=False,
257
  ),
 
244
  n_samples: int = 1,
245
  use_biaser: bool = True,
246
  ) -> go.Figure:
247
+ range_radius = 80
248
  if use_biaser:
249
  risk_level = float(risk_level)
250
  else:
251
  risk_level = None
252
  layout = go.Layout(
253
  xaxis=dict(
254
+ range=[-0.5*range_radius, 1.5*range_radius],
255
  autorange=False,
256
  zeroline=False,
257
  ),