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.set_aspect(1)
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

set_aspect(1)

make chart aspect ratio is 1:1

.Circle(

plots a circle

0.5, 0.5

circle center point coordinates

.25

circle radius

fill=False

do not fill the circle

.show()

render chart in a separate window