From 3abe8c2868d938d4dd7d442d5a6aae57995b2900 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Tue, 5 Sep 2017 01:19:28 -0500 Subject: [PATCH] Toys: Fix parameter name of the text in text_kwargs. --- sumpy/toys.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sumpy/toys.py b/sumpy/toys.py index c4d438ba..4f11fcbf 100644 --- a/sumpy/toys.py +++ b/sumpy/toys.py @@ -338,8 +338,8 @@ class ExpansionPotentialSource(PotentialSource): .. attribute:: text_kwargs - Passed to matplotlib.text(). Used for customizing the expansion - label. Just for visualization, purely advisory. + Passed to :method:`matplotlib.axes.Axes.text`. Used for customizing the + expansion label. Just for visualization, purely advisory. """ def __init__(self, toy_ctx, center, rscale, order, coeffs, derived_from, radius=None, expn_style=None, text_kwargs=None): @@ -584,7 +584,7 @@ class SchematicVisitor(object): text_kwargs = dict( x=psource.center[0], y=psource.center[1], - text=type(psource).__name__[0], + s=type(psource).__name__[0], verticalalignment="center", horizontalalignment="center") -- GitLab