@@ -837,16 +837,16 @@ def test_collection_set_verts_array():
837837 verts = np .arange (80 , dtype = np .double ).reshape (10 , 4 , 2 )
838838 col_arr = PolyCollection (verts )
839839 col_list = PolyCollection (list (verts ))
840- assert len (col_arr ._paths ) == len (col_list ._paths )
841- for ap , lp in zip (col_arr ._paths , col_list ._paths ):
840+ assert len (col_arr .get_paths ()) == len (col_list .get_paths () )
841+ for ap , lp in zip (col_arr .get_paths () , col_list .get_paths () ):
842842 assert np .array_equal (ap ._vertices , lp ._vertices )
843843 assert np .array_equal (ap ._codes , lp ._codes )
844844
845845 verts_tuple = np .empty (10 , dtype = object )
846846 verts_tuple [:] = [tuple (tuple (y ) for y in x ) for x in verts ]
847847 col_arr_tuple = PolyCollection (verts_tuple )
848- assert len (col_arr ._paths ) == len (col_arr_tuple ._paths )
849- for ap , atp in zip (col_arr ._paths , col_arr_tuple ._paths ):
848+ assert len (col_arr .get_paths ()) == len (col_arr_tuple .get_paths () )
849+ for ap , atp in zip (col_arr .get_paths () , col_arr_tuple .get_paths () ):
850850 assert np .array_equal (ap ._vertices , atp ._vertices )
851851 assert np .array_equal (ap ._codes , atp ._codes )
852852
0 commit comments