File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ def set_segments(self, segments):
235
235
"""
236
236
self ._segments3d = []
237
237
if len (segments ) > 0 :
238
- self ._seg_sizes = np . full ( len (segments ), len ( segments [ 0 ]))
238
+ self ._seg_sizes = [ len (c ) for c in segments ]
239
239
# Store the points in a single array for easier projection
240
240
n_segments = np .sum (self ._seg_sizes )
241
241
@@ -670,11 +670,11 @@ def do_3d_projection(self, renderer):
670
670
zvec = np .array ([[0 ], [0 ], [self ._sort_zpos ], [1 ]])
671
671
ztrans = proj3d .proj_transform_vec (zvec , renderer .M )
672
672
return ztrans [2 ][0 ]
673
- elif xys [2 ].size > 0 :
673
+ elif xys [:, 2 ].size > 0 :
674
674
# FIXME: Some results still don't look quite right.
675
675
# In particular, examine contourf3d_demo2.py
676
676
# with az = -54 and elev = -45.
677
- return np .min (xys [2 ])
677
+ return np .min (xys [:, 2 ])
678
678
else :
679
679
return np .nan
680
680
You can’t perform that action at this time.
0 commit comments