File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from mpl_toolkits .mplot3d import Axes3D , axes3d , proj3d , art3d
44from matplotlib import cm
55from matplotlib .testing .decorators import image_comparison , check_figures_equal
6- from matplotlib .collections import LineCollection
6+ from matplotlib .collections import LineCollection , PolyCollection
77from matplotlib .patches import Circle
88import matplotlib .pyplot as plt
99import numpy as np
@@ -440,6 +440,13 @@ def test_poly3dcollection_closed():
440440 ax .add_collection3d (c2 )
441441
442442
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+
443450@image_comparison (baseline_images = ['axes3d_labelpad' ], extensions = ['png' ])
444451def test_axes3d_labelpad ():
445452 from matplotlib import rcParams
You can’t perform that action at this time.
0 commit comments