Skip to content

Commit 797b36f

Browse files
Update deprecated function/argument names for svZeroDVisualization (#199)
1 parent 9ee68ed commit 797b36f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

applications/svZeroDVisualization/visualize_simulation.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,11 @@ def normalize_names(name):
388388
figure={
389389
'data': [edge_trace, vessel_trace, chamber_trace, valve_trace, junction_trace, bc_trace],
390390
'layout': go.Layout(
391-
title='Network Graph',
392-
titlefont_size=30,
393-
title_x=0.5,
391+
title={
392+
'text': 'Network Graph',
393+
'x': 0.5,
394+
'font': {'size': 30}
395+
},
394396
showlegend=True,
395397
hovermode='closest',
396398
margin=dict(b=20, l=0, r=0, t=50),
@@ -469,9 +471,11 @@ def update_graphs(clickData):
469471
fig = go.Figure(
470472
data=[edge_trace, vessel_trace, chamber_trace, valve_trace, junction_trace, bc_trace],
471473
layout=go.Layout(
472-
title='Network Graph',
473-
titlefont_size=30,
474-
title_x=0.5,
474+
title={
475+
'text': 'Network Graph',
476+
'x': 0.5,
477+
'font': {'size': 30}
478+
},
475479
showlegend=True,
476480
hovermode='closest',
477481
margin=dict(b=20, l=0, r=0, t=50),
@@ -651,4 +655,4 @@ def update_graphs(clickData):
651655

652656

653657
if __name__ == '__main__':
654-
app.run_server(debug=True)
658+
app.run(debug=True)

0 commit comments

Comments
 (0)