You are reading an old version of the documentation (v2.2.2). For the latest version see
Version 2.2.2
Fork me on GitHub

Related Topics

Ellipse RotatedΒΆ

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.patches import Ellipse

delta = 45.0  # degrees

angles = np.arange(0, 360 + delta, delta)
ells = [Ellipse((1, 1), 4, 2, a) for a in angles]

a = plt.subplot(111, aspect='equal')

for e in ells:

plt.xlim(-2, 4)
plt.ylim(-1, 3)

Keywords: matplotlib code example, codex, python plot, pyplot Gallery generated by Sphinx-Gallery