Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b429c9 commit 039a82fCopy full SHA for 039a82f
1 file changed
lib/matplotlib/tri/tritools.py
@@ -48,7 +48,8 @@ def scale_factors(self):
48
49
"""
50
compressed_triangles = self._triangulation.get_masked_triangles()
51
- node_used = (np.bincount(np.ravel(compressed_triangles)) != 0)
+ node_used = (np.bincount(np.ravel(compressed_triangles),
52
+ minlength=self._triangulation.x.size) != 0)
53
x = self._triangulation.x[node_used]
54
y = self._triangulation.y[node_used]
55
ux = np.max(x)-np.min(x)
0 commit comments