Skip to content

Commit aca5ba0

Browse files
committed
Tweak arrow demo size.
The old version renders a bit small in the web docs.
1 parent 078790e commit aca5ba0

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)