2825 explained code solutions for 75 technologies


python-matplotlibHow to draw a circle


import matplotlib.pyplot as plt

figure, axes = plt.subplots()

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

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

.show()

render chart in a separate window