From 8cbad4354591d964f411d3ffecf74c4464078af8 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Thu, 17 Mar 2022 15:15:53 -0400 Subject: [PATCH] fixed full-screen overlapping --- scripts/plotly_streamlit.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.py index 9117bf6..1d6b8f0 100755 --- a/scripts/plotly_streamlit.py +++ b/scripts/plotly_streamlit.py @@ -12,6 +12,7 @@ from pathlib import Path URI_SQLITE_DB = "/home/pi/BirdNET-Pi/scripts/birds.db" +st.set_page_config(layout='wide') @st.cache(hash_funcs={Connection: id}) def get_connection(path: str): """Put the connection in cache to reuse if path does not change between Streamlit reruns. @@ -90,9 +91,9 @@ fig = make_subplots( specs= [[{"type":"xy","rowspan":2}, {"type":"polar"}], [None, {"type":"xy"}]], subplot_titles=('Species in Date Range', ''+specie+'
' - 'Total Detections:'+str('{:,}'.format(sum(df_counts.Time)))+'
' - 'Max Confidence:'+str('{:.2f}%'.format(max(df2[df2['Com_Name']==specie]['Confidence'])*100))+'
' - 'Median Confidence:'+str('{:.2f}%'.format(np.median(df2[df2['Com_Name']==specie]['Confidence'])*100))+'
' + 'Total Detections: '+str('{:,}'.format(sum(df_counts.Time)))+'
' + 'Max Confidence: '+str('{:.2f}%'.format(max(df2[df2['Com_Name']==specie]['Confidence'])*100))+'
' + 'Median Confidence: '+str('{:.2f}%'.format(np.median(df2[df2['Com_Name']==specie]['Confidence'])*100))+'
' ) ) @@ -134,7 +135,7 @@ fig.update_layout( ), ) -fig.layout.annotations[1].update(x=0.775,y=0.4, font_size=25) +fig.layout.annotations[1].update(x=0.775,y=0.4, font_size=20) x=df_counts.index y=df_counts['Com_Name']