Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1d29b8

Browse filesBrowse files
committed
removed duplicate matplotlib.transforms import
1 parent b9b6d52 commit e1d29b8
Copy full SHA for e1d29b8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+2-3Lines 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
@@ -4251,8 +4250,8 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
42514250
ymin, ymax = (np.min(y), np.max(y)) if len(y) else (0, 1)
42524251

42534252
# to avoid issues with singular data, expand the min/max pairs
4254-
xmin, xmax = mtrans.nonsingular(xmin, xmax, expander=0.1)
4255-
ymin, ymax = mtrans.nonsingular(ymin, ymax, expander=0.1)
4253+
xmin, xmax = mtransforms.nonsingular(xmin, xmax, expander=0.1)
4254+
ymin, ymax = mtransforms.nonsingular(ymin, ymax, expander=0.1)
42564255

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.