PlotSlice in OcTree

This commit is contained in:
Rowan Cockett
2015-11-18 11:52:05 -08:00
parent 1718e3506d
commit c1b5f45ac7
3 changed files with 181 additions and 41 deletions
+1
View File
@@ -216,6 +216,7 @@ class TensorView(object):
if ind is None: ind = int(szSliceDim/2)
assert type(ind) in [int, long], 'ind must be an integer'
assert not (v.dtype == complex and view == 'vec'), 'Can not plot a complex vector.'
# The slicing and plotting code!!
def getIndSlice(v):