Skip to content

Commit

Permalink
Fixed failing vector plot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aashish24 committed Sep 22, 2015
1 parent c28953a commit 4589d40
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Packages/vcs/Lib/vcsvtk/vectorpipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,17 @@ def plot(self, data1, data2, tmpl, grid, transform):

x1, x2, y1, y2 = vcs.utils.getworldcoordinates(self._gm, data1.getAxis(-1),
data1.getAxis(-2))
if geo is None:
wc = [x1, x2, y1, y2]
else:
wc = None

# TODO: doWrap is broken for vectors
# act = vcs2vtk.doWrap(act, [x1, x2, y1, y2], self._dataWrapModulo)

self._context().fitToViewport(act, [tmpl.data.x1, tmpl.data.x2,
tmpl.data.y1, tmpl.data.y2],
wc=None,
wc=wc,
priority=tmpl.data.priority,
create_renderer=True)

Expand Down

0 comments on commit 4589d40

Please sign in to comment.