Skip to content

Commit b900ee4

Browse files
authored
Merge pull request #22493 from meeseeksmachine/auto-backport-of-pr-22483-on-v3.5.x
Backport PR #22483 on branch v3.5.x (Tweak arrow demo size.)
2 parents f768952 + 2f95e03 commit b900ee4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/text_labels_and_annotations/arrow_demo.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ def make_arrow_graph(ax, data, size=4, display='length', shape='right',
4242
`.FancyArrow` properties, e.g. *linewidth* or *edgecolor*.
4343
"""
4444

45-
ax.set(xlim=(-0.5, 1.5), ylim=(-0.5, 1.5), xticks=[], yticks=[])
46-
ax.text(.01, .01, f'flux encoded as arrow {display}',
47-
transform=ax.transAxes)
45+
ax.set(xlim=(-0.25, 1.25), ylim=(-0.25, 1.25), xticks=[], yticks=[],
46+
title=f'flux encoded as arrow {display}')
4847
max_text_size = size * 12
4948
min_text_size = size
50-
label_text_size = size * 2.5
49+
label_text_size = size * 4
5150

5251
bases = 'ATGC'
5352
coords = {

0 commit comments

Comments
 (0)