From f16b4b7b9d9fbb2cfbf49b0b0769e59a312f0f88 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Fri, 15 Sep 2017 17:43:48 -0500 Subject: [PATCH] [ci skip] Fix order of arrows. This should *actually* reproduce the picture in !59 (my bad). --- sumpy/toys.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sumpy/toys.py b/sumpy/toys.py index 20ba4e0e..2f5907f1 100644 --- a/sumpy/toys.py +++ b/sumpy/toys.py @@ -598,17 +598,17 @@ class SchematicVisitor(object): label = psource_text_kwargs_copy.pop('s', label) text_kwargs.update(psource_text_kwargs_copy) - shrinkA = 0 # noqa + shrinkB = 0 # noqa if isinstance(psource.derived_from, ExpansionPotentialSource): # Avoid overlapping the tail of the arrow with any expansion labels that # are present at the tail. import matplotlib as mpl font_size = mpl.rcParams['font.size'] - shrinkA = 2/3 * font_size # noqa + shrinkB = 2/3 * font_size # noqa - arrowprops = dict(shrinkA=shrinkA, arrowstyle="<|-") # noqa + arrowprops = dict(shrinkB=shrinkB, arrowstyle="<|-") - draw_annotation(psource.center, psource.derived_from.center, label, + draw_annotation(psource.derived_from.center, psource.center, label, arrowprops, **text_kwargs) self.rec(psource.derived_from) -- GitLab