File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
from mpl_toolkits .mplot3d import Axes3D , axes3d , proj3d, art3d
4
4
from matplotlib import cm
5
5
from matplotlib .testing .decorators import image_comparison , check_figures_equal
6
- from matplotlib .collections import LineCollection
6
+ from matplotlib .collections import LineCollection , PolyCollection
7
7
from matplotlib .patches import Circle
8
8
import matplotlib .pyplot as plt
9
9
import numpy as np
@@ -440,6 +440,13 @@ def test_poly3dcollection_closed():
440
440
ax .add_collection3d (c2 )
441
441
442
442
443
+ def test_poly_collection_2d_to_3d_empty ():
444
+ poly = PolyCollection ([])
445
+ art3d .poly_collection_2d_to_3d (poly )
446
+ assert isinstance (poly , art3d .Poly3DCollection )
447
+ assert poly .get_paths () == []
448
+
449
+
443
450
@image_comparison (baseline_images = ['axes3d_labelpad' ], extensions = ['png' ])
444
451
def test_axes3d_labelpad ():
445
452
from matplotlib import rcParams
You can’t perform that action at this time.
0 commit comments