Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
814 B
1
Indexable
Never
import matplotlib.pyplot as plt

# Data
base_heart_rate = [81.33, 73.3, 64, 88, 80, 81.33, 88, 76, 55.6, 73.3, 64, 72, 78.6]
informative = [92, 60, 68, 88, 76, 80, 92, 60, 60, 81, 68, 70, 84]
emotive = [80, 84, 72, 80, 92, 100, 100, 76, 80, 88, 64, 92, 92]

# Scatterplot "Base Heart Rate" vs. "Informative"
plt.scatter(base_heart_rate, informative, c='blue', label='Informative')
plt.xlabel('Base Heart Rate')
plt.ylabel('Informative')
plt.title('Scatterplot: Base Heart Rate vs. Informative')
plt.legend()
plt.grid(True)
plt.show()

# Scatterplot "Base Heart Rate" vs. "Emotive"
plt.scatter(base_heart_rate, emotive, c='red', label='Emotive')
plt.xlabel('Base Heart Rate')
plt.ylabel('Emotive')
plt.title('Scatterplot: Base Heart Rate vs. Emotive')
plt.legend()
plt.grid(True)
plt.show()