Skip to content

Commit b208764

Browse files
committed
Fixed failing vector plot tests
1 parent 279ddba commit b208764

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Packages/vcs/Lib/vcsvtk/vectorpipeline.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,17 @@ def plot(self, data1, data2, tmpl, grid, transform):
140140

141141
x1, x2, y1, y2 = vcs.utils.getworldcoordinates(self._gm, data1.getAxis(-1),
142142
data1.getAxis(-2))
143+
if geo is None:
144+
wc = [x1, x2, y1, y2]
145+
else:
146+
wc = None
147+
148+
# TODO: doWrap is broken for vectors
143149
# act = vcs2vtk.doWrap(act, [x1, x2, y1, y2], self._dataWrapModulo)
150+
144151
self._context().fitToViewport(act, [tmpl.data.x1, tmpl.data.x2,
145152
tmpl.data.y1, tmpl.data.y2],
146-
wc=None,
153+
wc=wc,
147154
priority=tmpl.data.priority,
148155
create_renderer=True)
149156

0 commit comments

Comments
 (0)