Plot Circles using the Parametric Equation and Python Matplotlib

preview_player
Показать описание
As part of a series on Python list operations, plotting and drawing, this NCLab video demonstrates how to plot circles using the parametric equation of a circle and the Python library, Matplotlib. These principles can be used to graph any parametric equation. A companion video shows a similar procedure using a Python turtle drawing tool.
Рекомендации по теме
Комментарии
Автор

Thank you for your example! I tried the alternative approach:


import matplotlib.pyplot as plt
from math import *

angle = [2*pi/100*i for i in range(101)]
radius = 10

x = [radius*cos(i) for i in angle]
y = [radius*sin(i) for i in angle]

plt.axis("equal")
plt.plot(x, y)
plt.show()

wowZhenek
Автор

Thank you very much for this video! I learnt a lot from this simple example!

tymothylim
Автор

Thats great thanks a lot, just got into programming and wanna do a drawing project. I actually tried turtle but it wasnt interactive, so matplotlib it is then!

antikoerper