Skip to content

Commit f570978

Browse files
sindunuragarpkahnchana
authored andcommitted
removed duplicate matplotlib.transforms import
1 parent d4d912b commit f570978

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import matplotlib.ticker as mticker
4141
import matplotlib.transforms as mtransforms
4242
import matplotlib.tri as mtri
43-
import matplotlib.transforms as mtrans
4443
from matplotlib.container import BarContainer, ErrorbarContainer, StemContainer
4544
from matplotlib.axes._base import _AxesBase
4645
from matplotlib.axes._base import _process_plot_format
@@ -4255,8 +4254,8 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
42554254
ymin, ymax = (np.min(y), np.max(y)) if len(y) else (0, 1)
42564255

42574256
# to avoid issues with singular data, expand the min/max pairs
4258-
xmin, xmax = mtrans.nonsingular(xmin, xmax, expander=0.1)
4259-
ymin, ymax = mtrans.nonsingular(ymin, ymax, expander=0.1)
4257+
xmin, xmax = mtransforms.nonsingular(xmin, xmax, expander=0.1)
4258+
ymin, ymax = mtransforms.nonsingular(ymin, ymax, expander=0.1)
42604259

42614260
# In the x-direction, the hexagons exactly cover the region from
42624261
# xmin to xmax. Need some padding to avoid roundoff errors.

0 commit comments

Comments
 (0)