From aca5ba05f307a7b093e7fc16f5f7cd76ff6ec23b Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 17 Feb 2022 21:56:35 +0100 Subject: [PATCH] Tweak arrow demo size. The old version renders a bit small in the web docs. --- examples/text_labels_and_annotations/arrow_demo.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/text_labels_and_annotations/arrow_demo.py b/examples/text_labels_and_annotations/arrow_demo.py index a79c5eb27a05..f501506082a3 100644 --- a/examples/text_labels_and_annotations/arrow_demo.py +++ b/examples/text_labels_and_annotations/arrow_demo.py @@ -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 = {