9951 explained code solutions for 126 technologies

python-matplotlibHow to draw a circle

import matplotlib.pyplot as plt

figure, axes = plt.subplots()

axes.add_artist(plt.Circle((0.5, 0.5), .25))

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


render chart in a separate window