Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d74edb

Browse files
committed
Remove redundant angles in ellipse demo.
Since ellipses are 180°-symmetric, they're actually overplotted twice (and 3 times for 0° before #16109.)
1 parent 8413b23 commit 5d74edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/shapes_and_collections/ellipse_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from matplotlib.patches import Ellipse
4848

4949
angle_step = 45 # degrees
50-
angles = np.arange(0, 360, angle_step)
50+
angles = np.arange(0, 180, angle_step)
5151

5252
ax = plt.subplot(aspect='equal')
5353

0 commit comments

Comments
 (0)