matplotlib add point to plot code example
Example: python add a point to a plot
# Basic syntax
plt.plot(x, y, 'marker')
# Example usage:
import matplotlib.pyplot as plt
import numpy as np
# Data to plot
x = np.linspace(0, 10, 100)
# Plot figure
fig = plt.figure()
plt.plot(x, np.sin(x), '-')
# Add point
plt.plot(5, 0, 'ro')
# Note, see all marker styles here:
# https://matplotlib.org/stable/api/markers_api.html