- 3

How to display a circle dynamically in python, using matplotlib.pyplot?

import numpy as np import matplotlib.pyplot as plt theta = np.linspace(0, 2*np.pi, 360) r = np.sqrt(1) x1 = r*np.cos(theta) x2 = r*np.sin(theta) plt.plot(x1, x2) plt.xlim(-1,1) plt.ylim(-1.7,1.7) plt.title('CIRCLE', fontsize=8) plt.show() This program is static. I used the parametric equation of circle to execute this. The user will provide the input radius. Please help me with the dynamic one. I just don't know how to write dynamically. I want to learn. Please help.

19th May 2020, 5:56 PM
Aariyan Krishnatria
Aariyan Krishnatria - avatar
2 Answers
0
Ok
27th Jul 2020, 2:44 PM
Aariyan Krishnatria
Aariyan Krishnatria - avatar