anaucoin commited on
Commit
0526aae
·
1 Parent(s): eb784b8

logo centering (ish)

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -436,17 +436,17 @@ def runapp() -> None:
436
  fig.add_trace(go.Scatter(x=dfdata['Exit Date'], y=np.round(buyhold.values,2), line_shape='spline',
437
  line = {'smoothing': .7, 'color' :'rgba(33, 212, 225, 1)'}, name = 'Buy & Hold')
438
  )
439
-
 
440
  fig.add_layout_image(
441
  dict(
442
  source=pyLogo,
443
  xref="paper",
444
  yref="paper",
445
- x = 0.05, #dfdata['Exit Date'].astype('int64').min() // 10**9,
446
- y = .95, #dfdata['Cumulative P/L'].max(),
447
- sizex= .9, #(dfdata['Exit Date'].astype('int64').max() - dfdata['Exit Date'].astype('int64').min()) // 10**9,
448
- sizey= .9, #(dfdata['Cumulative P/L'].max() - dfdata['Cumulative P/L'].min()),
449
- sizing="contain",
450
  opacity=0.5,
451
  layer = "below")
452
  )
 
436
  fig.add_trace(go.Scatter(x=dfdata['Exit Date'], y=np.round(buyhold.values,2), line_shape='spline',
437
  line = {'smoothing': .7, 'color' :'rgba(33, 212, 225, 1)'}, name = 'Buy & Hold')
438
  )
439
+ img_width = 2001
440
+ img_height = 622
441
  fig.add_layout_image(
442
  dict(
443
  source=pyLogo,
444
  xref="paper",
445
  yref="paper",
446
+ x = 0.1,
447
+ y = 1,
448
+ sizex= 1,
449
+ sizey= 1,
 
450
  opacity=0.5,
451
  layer = "below")
452
  )