Untitled

 avatar
unknown
plain_text
2 years ago
671 B
1
Indexable
import matplotlib.pyplot as plt

# Data
temperature = [5, 24, 84]  # Water temperature in °C
trial1 = [227.05, 85.60, 40.21]  # Melting time for trial 1
trial2 = [215.70, 92.01, 41.69]  # Melting time for trial 2
trial3 = [217.34, 103.37, 41.53]  # Melting time for trial 3

# Scatter plot
plt.scatter(temperature, trial1, label='Trial 1')
plt.scatter(temperature, trial2, label='Trial 2')
plt.scatter(temperature, trial3, label='Trial 3')

# Plot settings
plt.xlabel('Water Temperature (°C)')
plt.ylabel('Melting Time (seconds)')
plt.title('Melting Time of Berocca Tablets at Different Water Temperatures')
plt.legend()

# Display plot
plt.show()
Editor is loading...