Untitled

 avatar
unknown
plain_text
15 days ago
562 B
3
Indexable
import matplotlib.pyplot as plt
import numpy as np

# Data
weeks = np.array([1, 2, 3, 4, 5, 6])
weights = np.linspace(55, 75, num=6)  # Linjär ökning mellan 55kg och 75kg

# Skapa diagram
plt.figure(figsize=(8, 5))
plt.plot(weeks, weights, marker='o', linestyle='-', color='b', label='Bänkpress 1RM')

# Lägg till etiketter och titlar
plt.xlabel('Veckor')
plt.ylabel('Vikt (kg)')
plt.title('Utveckling av 1RM i Bänkpress')
plt.xticks(weeks)
plt.yticks(np.arange(50, 80, 5))
plt.grid(True, linestyle='--', alpha=0.7)
plt.legend()

# Visa diagram
plt.show()

Editor is loading...
Leave a Comment