@@ -86,7 +86,7 @@ def test__EventCollection__get_props():
86
86
# check that the default lineoffset matches the input lineoffset
87
87
assert props ['lineoffset' ] == coll .get_lineoffset ()
88
88
# check that the default linestyle matches the input linestyle
89
- assert coll .get_linestyle () == [(0 , None )]
89
+ assert coll .get_linestyle (scaled = True ) == [(0 , None )]
90
90
# check that the default color matches the input color
91
91
for color in [coll .get_color (), * coll .get_colors ()]:
92
92
np .testing .assert_array_equal (color , props ['color' ])
@@ -248,7 +248,7 @@ def test__EventCollection__set_lineoffset():
248
248
])
249
249
def test__EventCollection__set_prop ():
250
250
for prop , value , expected in [
251
- ('linestyle' , 'dashed' , [( 0 , ( 6.0 , 6.0 )) ]),
251
+ ('linestyle' , 'dashed' , ['dashed' ]),
252
252
('linestyle' , (0 , (6. , 6. )), [(0 , (6.0 , 6.0 ))]),
253
253
('linewidth' , 5 , 5 ),
254
254
]:
@@ -666,11 +666,11 @@ def test_lslw_bcast():
666
666
col .set_linestyles (['-' , '-' ])
667
667
col .set_linewidths ([1 , 2 , 3 ])
668
668
669
- assert col .get_linestyles () == [(0 , None )] * 6
669
+ assert col .get_linestyles (scaled = True ) == [(0 , None )] * 6
670
670
assert col .get_linewidths () == [1 , 2 , 3 ] * 2
671
671
672
672
col .set_linestyles (['-' , '-' , '-' ])
673
- assert col .get_linestyles () == [(0 , None )] * 3
673
+ assert col .get_linestyles (scaled = True ) == [(0 , None )] * 3
674
674
assert (col .get_linewidths () == [1 , 2 , 3 ]).all ()
675
675
676
676
0 commit comments