9951 explained code solutions for 126 technologies

python-matplotlibHow to draw a circle with no fill

import matplotlib.pyplot as plt

figure, axes = plt.subplots()

axes.add_artist(plt.Circle((0.5, 0.5), .25, fill=False))

plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities


make chart aspect ratio is 1:1


plots a circle

0.5, 0.5

circle center point coordinates


circle radius


do not fill the circle


render chart in a separate window