From f3bd49145015073c15caf1d2ab42dbbec2be0f5d Mon Sep 17 00:00:00 2001 From: Ryan May Date: Thu, 1 Jul 2021 20:27:00 -0600 Subject: [PATCH] MNT: Remove unused and commented out code from scattertext --- src/metpy/plots/_mpl.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/metpy/plots/_mpl.py b/src/metpy/plots/_mpl.py index e46e78036b2..05f6f4acc66 100644 --- a/src/metpy/plots/_mpl.py +++ b/src/metpy/plots/_mpl.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: BSD-3-Clause """Functionality that we have upstreamed or will upstream into matplotlib.""" -# See if we should monkey-patch Barbs for better pivot from matplotlib.axes import Axes # noqa: E402, I100, I202 import matplotlib.transforms as transforms import numpy as np @@ -67,16 +66,6 @@ def scattertext(self, x, y, texts, loc=(0, 0), **kw): 'clip_on': False} new_kw.update(kw) - # Default to centered on point--special case it to keep transform - # simpler. - # t = new_kw['transform'] - # if loc == (0, 0): - # trans = t - # else: - # x0, y0 = loc - # trans = t + mtransforms.Affine2D().translate(x0, y0) - # new_kw['transform'] = trans - # Handle masked arrays x, y, texts = cbook.delete_masked_points(x, y, texts)