Skip to content

Commit 298da48

Browse files
committed
rebase to main, remove conflicting commit
1 parent c2ad2dd commit 298da48

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/text_labels_and_annotations/angles_on_bracket_arrows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_point_of_rotated_vertical(origin, line_length, degrees):
5151
kw = dict(connectionstyle=f"arc3,rad={dir * 0.5}",
5252
arrowstyle=arrowstyle, color="C0")
5353
ax.add_patch(FancyArrowPatch(vline, patch_top, **kw))
54-
ax.text(vline[0] - dir * 0.15, y + 0.3, angle, ha="center",
54+
ax.text(vline[0] - dir * 0.15, y + 0.3, f'{angle}°', ha="center",
5555
va="center")
5656

5757
#############################################################################

lib/matplotlib/patches.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3119,6 +3119,14 @@ class ArrowStyle(_Style):
31193119
stroked. This is meant to be used to correct the location of the
31203120
head so that it does not overshoot the destination point, but not all
31213121
classes support it.
3122+
3123+
Notes
3124+
-----
3125+
*angleA* and *angleB* specify the orientation of the bracket, as either a
3126+
clockwise or counterclockwise angle depending on the arrow type. 0 degrees
3127+
means perpendicular to the line connecting the arrow's head and tail.
3128+
3129+
.. plot:: gallery/text_labels_and_annotations/angles_on_bracket_arrows.py
31223130
"""
31233131

31243132
_style_list = {}

0 commit comments

Comments
 (0)