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

Skip to content

Commit ad01293

Browse files
authored
Minor updates from suggestions.
1 parent a319146 commit ad01293

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/text_labels_and_annotations/angles_on_bracket_arrows.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def R(a, r, w, h):
169169

170170

171171
#############################################################################
172-
# The plot is generatd with the following code.
172+
# The plot is generated with the following code.
173173

174174
def get_point_of_rotated_vertical(origin, line_length, degrees):
175175
"""Return xy coordinates of the vertical line end rotated by degrees."""
@@ -180,7 +180,9 @@ def get_point_of_rotated_vertical(origin, line_length, degrees):
180180

181181
fig, ax = plt.subplots(figsize=(8, 7))
182182
ax.set(xlim=(0, 6), ylim=(-1, 4))
183-
ax.set_title('Angle annotations on bracket arrows')
183+
ax.set_title(
184+
'Orientation of the bracket (arrow head/tail) relative to angleA and angleB'
185+
)
184186

185187
for i, stylename in enumerate(["]-[", "|-|"]):
186188
for j, angle in enumerate([-40, 60]):

lib/matplotlib/patches.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3122,6 +3122,10 @@ class ArrowStyle(_Style):
31223122
31233123
Notes
31243124
-----
3125+
*angleA* and *angleB* specify the orientation of the bracket, as either a clockwise
3126+
or counterclockwise angle depending on the arrow type. 0 degrees means perpendicular
3127+
to the line connecting the arrow's head and tail.
3128+
31253129
.. plot:: gallery/text_labels_and_annotations/angles_on_bracket_arrows.py
31263130
"""
31273131

0 commit comments

Comments
 (0)