final branch commit
This commit is contained in:
		
							parent
							
								
									568c13053c
								
							
						
					
					
						commit
						ac7ab0c339
					
				@ -117,7 +117,7 @@ plt.savefig(graphic_corr_path)
 | 
			
		||||
plt.show()
 | 
			
		||||
 | 
			
		||||
# Schritt 6: Erstelle eine Grafik pro Kalenderwoche (HR und Schlafdaten)
 | 
			
		||||
fig, ax1 = plt.subplots(figsize=(12, 6))
 | 
			
		||||
fig, ax1 = plt.subplots(figsize=(30, 8))  # Breitere Darstellung
 | 
			
		||||
 | 
			
		||||
# Erste Achse: Herzfrequenz
 | 
			
		||||
ax1.bar(combined_data['Woche'], combined_data['avg_hr'], width=0.4, label='Durchschnittliche Herzfrequenz', align='center', color='b')
 | 
			
		||||
@ -132,7 +132,13 @@ ax2.set_ylabel('Schlafdauer (Stunden)', color='g')
 | 
			
		||||
ax2.tick_params(axis='y', labelcolor='g')
 | 
			
		||||
 | 
			
		||||
plt.title('Durchschnittliche Herzfrequenz und Schlafdauer pro Kalenderwoche')
 | 
			
		||||
plt.xticks(rotation=45, ha='right')
 | 
			
		||||
 | 
			
		||||
# Anpassung der x-Achse für bessere Lesbarkeit
 | 
			
		||||
plt.xticks(rotation=90, ha='center', fontsize=12)  # Schriftgröße auf 12 erhöht
 | 
			
		||||
 | 
			
		||||
# Zeige nur jede zweite Woche
 | 
			
		||||
ax1.set_xticks(ax1.get_xticks()[::2])
 | 
			
		||||
 | 
			
		||||
fig.tight_layout()
 | 
			
		||||
 | 
			
		||||
plt.savefig(graphic_weekly_path)
 | 
			
		||||
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB  | 
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user