Skip to content

Commit 4e47755

Browse files
committed
Update release notes with ellipse annotation
1 parent 15ace42 commit 4e47755

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
``ellipse`` boxstyle option for annotations
2+
-------------------------------------------
3+
4+
The `ellipse` option for boxstyle can now be used to create annotations
5+
with an elliptical outline. It can be used as a closed curve shape for
6+
longer texts instead of the `circle` boxstyle which can get quite big.
7+
8+
.. plot::
9+
:include-source: true
10+
11+
import matplotlib.pyplot as plt
12+
fig, ax = plt.subplots(figsize=(5, 5))
13+
t = ax.text(0.5, 0.5, "elliptical box",
14+
ha="center", size=15,
15+
bbox=dict(boxstyle="ellipse,pad=0.3"))

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2344,7 +2344,7 @@ def __call__(self, x0, y0, width, height, mutation_size):
23442344
class Ellipse:
23452345
"""
23462346
An elliptical box.
2347-
2347+
23482348
.. versionadded:: 3.7
23492349
"""
23502350

0 commit comments

Comments
 (0)