Skip to content

Backport PR #22483 on branch v3.5.x (Tweak arrow demo size.) #22493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions examples/text_labels_and_annotations/arrow_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ def make_arrow_graph(ax, data, size=4, display='length', shape='right',
`.FancyArrow` properties, e.g. *linewidth* or *edgecolor*.
"""

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

bases = 'ATGC'
coords = {
Expand Down