chatgpt/python-graph.py
2022-12-17 22:39:21 +02:00

20 lines
268 B
Python

import matplotlib.pyplot as plt
# Create some sample data
x = [1, 5]
y = [2, 10]
# Plot the data
plt.plot(x, y)
# Add a point to the plot
plt.scatter([2], [6], color='r')
# Add labels to the axes
plt.xlabel('Time')
plt.ylabel('Value')
# Show the plot
plt.show()