How to plot a single point in Matplotlib

You can plot a single point in Matplotlib with the following code. If you want to learn Python then I will highly recommend you to read This Book.

How to plot a single point in Matplotlib
How to plot a single point in Matplotlib

Single Point in Matplotlib

from matplotlib import pyplot as plt
plt.plot(10,20,'ro')
plt.show()
Single Point in Matplotlib

Single Point with different Size and Color

from matplotlib import pyplot as plt

x = 10
y = 20

plt.plot(x, y, marker="o", markersize=15, markerfacecolor="green")
plt.show()
Green Single Point using Matplotlib

People are also reading:

Best Python Books

What is Computer Vision? Examples, Applications, Techniques

Top 10 Computer Vision Books with Python

Books for Machine Learning (ML)

Free Learning Resources

Leave a Comment

Your email address will not be published.