From c99e38b5dd7c8aa87f40640e538431a5a9de6907 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 18 Nov 2017 16:29:17 -0600
Subject: [PATCH] Tweak expansion toys plot labeling

---
 sumpy/toys.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sumpy/toys.py b/sumpy/toys.py
index 2804b819..9b8f133a 100644
--- a/sumpy/toys.py
+++ b/sumpy/toys.py
@@ -704,7 +704,9 @@ class SchematicVisitor(object):
                 verticalalignment="center",
                 horizontalalignment="center")
 
-        label = type(psource).__name__[0]
+        label = "$%s_{%s}$" % (
+                type(psource).__name__[0].lower().replace("l", "\\ell"),
+                psource.order)
 
         if psource.text_kwargs is not None:
             psource_text_kwargs_copy = psource.text_kwargs.copy()
@@ -717,7 +719,7 @@ class SchematicVisitor(object):
             # are present at the tail.
             import matplotlib as mpl
             font_size = mpl.rcParams['font.size']
-            shrinkB = 2/3 * font_size  # noqa
+            shrinkB = 7/8 * font_size  # noqa
 
         arrowprops = dict(shrinkB=shrinkB, arrowstyle="<|-")
 
-- 
GitLab