import matplotlib.pyplot as plt
from sympy import symbols, plot_implicit, And

plt.rcParams["figure.figsize"] = (8,8)
x,y=symbols('x y')
p = plot_implicit(And(
    x**2 + y**2 < 25,
    x**2 + y**2 > 10,),
    (x,-10, 10), (y, -10, 10))

plt.savefig("ex416.png", dpi=100)
plt.show()

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading