Skip to content

Commit 984345a

Browse files
committed
fix #1734 for isofill
1 parent 8087cd0 commit 984345a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Packages/vcs/Lib/vcsvtk/isofillpipeline.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def _updateContourLevelsAndColors(self):
5757
levs2[0] = -1.e20
5858
for i in range(len(levs2) - 1):
5959
self._contourLevels.append([levs2[i], levs2[i + 1]])
60+
else:
61+
levs2 = self._gm.levels
6062

6163
if isinstance(self._contourLevels, numpy.ndarray):
6264
self._contourLevels = self._contourLevels.tolist()
@@ -102,7 +104,7 @@ def _plotInternal(self):
102104
x1, x2, y1, y2 = vcs.utils.getworldcoordinates(self._gm,
103105
self._data1.getAxis(-1),
104106
self._data1.getAxis(-2))
105-
assert(style != 'solid' or len(tmpLevels) == 1)
107+
#assert(style != 'solid' or len(tmpLevels) == 1)
106108
for i, l in enumerate(tmpLevels):
107109
# Ok here we are trying to group together levels can be, a join
108110
# will happen if: next set of levels continues where one left off

Packages/vcs/Lib/vcsvtk/pipeline2d.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ def _prepContours(self):
201201
tmpIndices.append(I)
202202
tmpOpacities.append(O)
203203
C = [self._contourColors[i]]
204-
# L = self._contourLevels[i]
205-
L = [L[-1], l[1]]
204+
L = self._contourLevels[i]
206205
I = indices[i]
207206
O = opacities[i]
208207
tmpLevels.append(L)

0 commit comments

Comments
 (0)