Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -732,7 +732,7 @@ def update_scatter_ct(year_slider,ct_select):
|
|
| 732 |
max_x_lsil = labdata['ASC/LSIL'].max()
|
| 733 |
tooltips_asc_lsil = f"""<div><span style="font-size: {fpx}; font-weight: bold">@{{ASC/LSIL}} </span></div>"""
|
| 734 |
hover_asc_lsil = HoverTool(tooltips=tooltips_asc_lsil)
|
| 735 |
-
scatter_lsil = scatterdata.iloc[0:1].hvplot.scatter(x='ASC/LSIL', y='people', color='black', size=sdot_person,height= 160,
|
| 736 |
xlim=(0,max_x_lsil+0.5), xticks = [0,lab_lsil,ref_lsil, 5], yaxis = 'bare',grid=True, title='ASC/LSIL',
|
| 737 |
xformatter='%.1f',xlabel ='', ylabel='', tools = [hover_asc_lsil]).opts(fontsize = pl_title,shared_axes=False,toolbar=None, default_tools = [])
|
| 738 |
ref_lsil_vline = hv.VLine(x=ref_lsil).opts(color='black', alpha = 1).opts(fontscale=f_scale, shared_axes=False,toolbar=None, default_tools = [])
|
|
@@ -749,7 +749,7 @@ def update_scatter_ct(year_slider,ct_select):
|
|
| 749 |
min_x_ascus = labdata['ASC-US/ASC-H ratio(%)'].min()
|
| 750 |
tooltips_ascus = f"""<div><span style="font-size: {fpx};font-weight: bold">@{{ASC-US/ASC-H ratio(%)}} </span></div>"""
|
| 751 |
hover_ascus = HoverTool(tooltips=tooltips_ascus)
|
| 752 |
-
scatter_ascus = scatterdata.iloc[0:1].hvplot.scatter(x='ASC-US/ASC-H ratio(%)', y='people', color='black', size=sdot_person,height= 160,
|
| 753 |
xlim=(17,100), xticks = [min_x_ascus,lab_ascus,ref_ascus, 100], yaxis = 'bare', grid=True, title='ASC-US/ASC-H ratio(%)',
|
| 754 |
xformatter='%.0f',xlabel ='', ylabel='', tools = [hover_ascus]).opts(fontsize = pl_title,shared_axes=False,toolbar=None, default_tools = [])
|
| 755 |
ref_ascus_vline = hv.VLine(x=ref_ascus).opts(color='black', alpha = 1).opts(fontscale=f_scale, shared_axes=False,toolbar=None, default_tools = [])
|
|
@@ -766,7 +766,7 @@ def update_scatter_ct(year_slider,ct_select):
|
|
| 766 |
max_x_agc = labdata[labdata.people.str.contains('ytolog')]['Abnormal Rate(%)'].max()
|
| 767 |
tooltips_agc = f"""<div><span style="font-size: {fpx};font-weight: bold">@{{Abnormal Rate(%)}} </span></div>"""
|
| 768 |
hover_agc = HoverTool(tooltips=tooltips_agc)
|
| 769 |
-
scatter_agc = scatterdata.iloc[0:1].hvplot.scatter(x='Abnormal Rate(%)', y='people', color='black', size=sdot_person,height= 160,
|
| 770 |
xlim=(0,max_x_agc), xticks = [0,lab_agc,ref_agc], yaxis = 'bare',grid=True, title='Abnormal Rate(%)',
|
| 771 |
xformatter='%.1f',xlabel ='', ylabel='', tools= [hover_agc]).opts(fontsize = pl_title,shared_axes=False,toolbar=None, default_tools = [])
|
| 772 |
ref_agc_vline = hv.VLine(x=ref_agc).opts(color='black', alpha = 1).opts(fontscale=f_scale, shared_axes=False,toolbar=None, default_tools = [])
|
|
@@ -787,7 +787,7 @@ def update_scatter_ct(year_slider,ct_select):
|
|
| 787 |
|
| 788 |
tooltips_ref = f"""<div><span style="font-size: {fpx};font-weight: bold">@{{Referral Rate(%)}} </span></div>"""
|
| 789 |
hover_ref = HoverTool(tooltips=tooltips_ref)
|
| 790 |
-
scatter_ref_rate = scatterdata_filtered.iloc[0:1].hvplot.scatter(x='Referral Rate(%)', y='people', color='black', size=sdot_person,height= 160,
|
| 791 |
xlim=(0,max_x_ref_rate+1), xticks = [0,lab_ref_rate,max_x_ref_rate], yaxis = 'bare',grid=True, title='Referral Rate(%)',
|
| 792 |
xformatter='%.1f',xlabel ='', ylabel='', tools = [hover_ref]).opts(fontsize = pl_title,fontscale=f_scale, shared_axes=False,toolbar=None, default_tools = [])
|
| 793 |
|
|
|
|
| 732 |
max_x_lsil = labdata['ASC/LSIL'].max()
|
| 733 |
tooltips_asc_lsil = f"""<div><span style="font-size: {fpx}; font-weight: bold">@{{ASC/LSIL}} </span></div>"""
|
| 734 |
hover_asc_lsil = HoverTool(tooltips=tooltips_asc_lsil)
|
| 735 |
+
scatter_lsil = scatterdata.iloc[0:1].hvplot.scatter(x='ASC/LSIL', y='people', color='black', size=sdot_person,height= 160, width=800,
|
| 736 |
xlim=(0,max_x_lsil+0.5), xticks = [0,lab_lsil,ref_lsil, 5], yaxis = 'bare',grid=True, title='ASC/LSIL',
|
| 737 |
xformatter='%.1f',xlabel ='', ylabel='', tools = [hover_asc_lsil]).opts(fontsize = pl_title,shared_axes=False,toolbar=None, default_tools = [])
|
| 738 |
ref_lsil_vline = hv.VLine(x=ref_lsil).opts(color='black', alpha = 1).opts(fontscale=f_scale, shared_axes=False,toolbar=None, default_tools = [])
|
|
|
|
| 749 |
min_x_ascus = labdata['ASC-US/ASC-H ratio(%)'].min()
|
| 750 |
tooltips_ascus = f"""<div><span style="font-size: {fpx};font-weight: bold">@{{ASC-US/ASC-H ratio(%)}} </span></div>"""
|
| 751 |
hover_ascus = HoverTool(tooltips=tooltips_ascus)
|
| 752 |
+
scatter_ascus = scatterdata.iloc[0:1].hvplot.scatter(x='ASC-US/ASC-H ratio(%)', y='people', color='black', size=sdot_person,height= 160, width=800,
|
| 753 |
xlim=(17,100), xticks = [min_x_ascus,lab_ascus,ref_ascus, 100], yaxis = 'bare', grid=True, title='ASC-US/ASC-H ratio(%)',
|
| 754 |
xformatter='%.0f',xlabel ='', ylabel='', tools = [hover_ascus]).opts(fontsize = pl_title,shared_axes=False,toolbar=None, default_tools = [])
|
| 755 |
ref_ascus_vline = hv.VLine(x=ref_ascus).opts(color='black', alpha = 1).opts(fontscale=f_scale, shared_axes=False,toolbar=None, default_tools = [])
|
|
|
|
| 766 |
max_x_agc = labdata[labdata.people.str.contains('ytolog')]['Abnormal Rate(%)'].max()
|
| 767 |
tooltips_agc = f"""<div><span style="font-size: {fpx};font-weight: bold">@{{Abnormal Rate(%)}} </span></div>"""
|
| 768 |
hover_agc = HoverTool(tooltips=tooltips_agc)
|
| 769 |
+
scatter_agc = scatterdata.iloc[0:1].hvplot.scatter(x='Abnormal Rate(%)', y='people', color='black', size=sdot_person,height= 160, width=800,
|
| 770 |
xlim=(0,max_x_agc), xticks = [0,lab_agc,ref_agc], yaxis = 'bare',grid=True, title='Abnormal Rate(%)',
|
| 771 |
xformatter='%.1f',xlabel ='', ylabel='', tools= [hover_agc]).opts(fontsize = pl_title,shared_axes=False,toolbar=None, default_tools = [])
|
| 772 |
ref_agc_vline = hv.VLine(x=ref_agc).opts(color='black', alpha = 1).opts(fontscale=f_scale, shared_axes=False,toolbar=None, default_tools = [])
|
|
|
|
| 787 |
|
| 788 |
tooltips_ref = f"""<div><span style="font-size: {fpx};font-weight: bold">@{{Referral Rate(%)}} </span></div>"""
|
| 789 |
hover_ref = HoverTool(tooltips=tooltips_ref)
|
| 790 |
+
scatter_ref_rate = scatterdata_filtered.iloc[0:1].hvplot.scatter(x='Referral Rate(%)', y='people', color='black', size=sdot_person,height= 160, width=800,
|
| 791 |
xlim=(0,max_x_ref_rate+1), xticks = [0,lab_ref_rate,max_x_ref_rate], yaxis = 'bare',grid=True, title='Referral Rate(%)',
|
| 792 |
xformatter='%.1f',xlabel ='', ylabel='', tools = [hover_ref]).opts(fontsize = pl_title,fontscale=f_scale, shared_axes=False,toolbar=None, default_tools = [])
|
| 793 |
|