import matplotlib.pyplot as plt
# Titration Data
volume = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20,
22, 24, 26, 28, 30, 32, 34, 36, 38, 40]
pH = [3.29, 4.07, 4.57, 4.94, 5.28, 5.62,
6.04, 6.29, 6.76, 7.82, 8.91, 9.25,
9.54, 9.79, 10.25, 10.48, 10.85,
11.24, 11.48, 11.58, 11.62]
# Create the plot
plt.figure(figsize=(7, 5))
plt.plot(volume, pH, marker='o', linestyle='-')
plt.title('Titration Curve: CH3COOH vs. NaOH')
plt.xlabel('Volume of NaOH added (cm³)')
plt.ylabel('pH')
plt.grid(True)
plt.show()