- matplotlib
Matplotlib Circle A:
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-1.0, 1.0, 100)
y = np.linspace(-1.0, 1.0, 100)
X, Y = np.meshgrid(x, y)
F = X**2 + Y**2 - 1.0
fig, ax = plt.subplots()
ax.contour(X, Y, F, [0])
ax.set_aspect(1)
plt.title('How to plot a circle with matplotlib ?', fontsize=8)
plt.xlim(-1.25, 1.25)
plt.ylim(-1.25, 1.25)
plt.grid(linestyle='-')
fig