Example image update

This commit is contained in:
2025-09-14 17:54:43 +02:00
parent 3915bc9f12
commit 7129df8a79
4 changed files with 12 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

View File

@@ -665,17 +665,15 @@ def create_heart_rate_plot(df):
# Heart Rate Zonen (optional) # Heart Rate Zonen (optional)
if mean_hr > 0: if mean_hr > 0:
# Geschätzte maximale Herzfrequenz (Beispiel: 200 bpm) # Geschätzte maximale Herzfrequenz (Beispiel: 200 bpm)
# Heart Rate Zonen (optional)
# Geschätzte maximale Herzfrequenz
max_hr_estimated = 200 # oder z. B. 220 - alter max_hr_estimated = 200 # oder z. B. 220 - alter
# Definiere feste HR-Zonen in BPM # Definiere feste HR-Zonen in BPM
zones = [ zones = [
{"name": "Zone 1", "lower": 0, "upper": 124, "color": "#F4A4A3"}, {"name": "Zone 1", "lower": 0, "upper": 124, "color": "#F4A4A3"}, # Regeneration (Recovery)
{"name": "Zone 2", "lower": 124, "upper": 154, "color": "#EF7476"}, {"name": "Zone 2", "lower": 124, "upper": 154, "color": "#EF7476"}, # Grundlagenausdauer (Endurance)
{"name": "Zone 3", "lower": 154, "upper": 169, "color": "#EA4748"}, {"name": "Zone 3", "lower": 154, "upper": 169, "color": "#EA4748"}, # Tempo
{"name": "Zone 4", "lower": 169, "upper": 184, "color": "#E02628"}, {"name": "Zone 4", "lower": 169, "upper": 184, "color": "#E02628"}, # Schwelle (Threshold)
{"name": "Zone 5", "lower": 184, "upper": max_hr_estimated, "color": "#B71316"}, {"name": "Zone 5", "lower": 184, "upper": max_hr_estimated, "color": "#B71316"}, # Anaerob
] ]
# Zeichne Zonen als Hintergrund (horizontale Rechtecke) # Zeichne Zonen als Hintergrund (horizontale Rechtecke)
@@ -683,7 +681,7 @@ def create_heart_rate_plot(df):
fig.add_hrect( fig.add_hrect(
y0=zone["lower"], y1=zone["upper"], y0=zone["lower"], y1=zone["upper"],
fillcolor=zone["color"], fillcolor=zone["color"],
opacity=0.1, opacity=0.15,
line_width=0, line_width=0,
annotation_text=zone["name"], # optional: Name der Zone einblenden annotation_text=zone["name"], # optional: Name der Zone einblenden
annotation_position="top left" annotation_position="top left"
@@ -771,8 +769,9 @@ def create_pace_bars_plot(df):
y=df['pace_min_per_km'], y=df['pace_min_per_km'],
width=df['segment_len'], width=df['segment_len'],
text=[f"{v:.1f} min/km" if pd.notnull(v) else "" for v in df['pace_min_per_km']], text=[f"{v:.1f} min/km" if pd.notnull(v) else "" for v in df['pace_min_per_km']],
textposition='outside', #textposition='outside',
marker_color='dodgerblue', textposition='inside',
marker_color='#125595',
name='Pace pro km', name='Pace pro km',
offset=0 offset=0
)) ))

View File

@@ -427,8 +427,9 @@ def create_pace_bars_plot(df):
y=df['pace_min_per_km'], y=df['pace_min_per_km'],
width=df['segment_len'], width=df['segment_len'],
text=[f"{v:.1f} min/km" if pd.notnull(v) else "" for v in df['pace_min_per_km']], text=[f"{v:.1f} min/km" if pd.notnull(v) else "" for v in df['pace_min_per_km']],
textposition='outside', #textposition='outside',
marker_color='dodgerblue', textposition='inside',
marker_color='#125595',
name='Pace pro km', name='Pace pro km',
offset=0 offset=0
)) ))