diff --git a/scripts/daily_plot.py b/scripts/daily_plot.py index f4741c1..675ba0a 100755 --- a/scripts/daily_plot.py +++ b/scripts/daily_plot.py @@ -91,7 +91,7 @@ heat_frame = pd.DataFrame(data=0, index=heat.index, columns = hours_in_day) heat=(heat+heat_frame).fillna(0) #Generatie heatmap plot -plot = sns.heatmap(heat, norm=LogNorm(), annot=True, annot_kws={"fontsize":7}, cmap = pal , square = False, cbar=False, linewidths = 0.5, linecolor = "Grey", ax=axs[1], yticklabels = False) +plot = sns.heatmap(heat, norm=LogNorm(), annot=True, fmt="g", annot_kws={"fontsize":7}, cmap = pal , square = False, cbar=False, linewidths = 0.5, linecolor = "Grey", ax=axs[1], yticklabels = False) # Set heatmap border for _, spine in plot.spines.items(): @@ -102,7 +102,7 @@ plot.set(xlabel="Hour of Day") #Set combined plot layout and titles plt.tight_layout() f.subplots_adjust(top=0.9) -plt.suptitle("Last Updated: "+ str(now.strftime("%B, %d at %I:%M%P"))) +plt.suptitle("Last Updated: "+ str(now.strftime("%B, %d at %T"))) #Save combined plot savename='/home/pi/BirdSongs/Extracted/Charts/Combo-'+str(now.strftime("%d-%m-%Y"))+'.png' diff --git a/scripts/viewdb.php b/scripts/viewdb.php index 497b6dd..e6dd485 100644 --- a/scripts/viewdb.php +++ b/scripts/viewdb.php @@ -98,6 +98,7 @@ $mysqli->close(); fetch_assoc()) { + $Confidence = sprintf("%.1f%%", $rows['Confidence'] * 100); ?>