Skip to content

Commit

Permalink
MNT: Remove unused and commented out code from scattertext
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Jul 7, 2021
1 parent 32cec8d commit f3bd491
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/metpy/plots/_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit f3bd491

Please sign in to comment.