6
6
from numpy .testing import assert_array_equal
7
7
8
8
from seaborn ._core .plot import Plot
9
- from seaborn ._marks .line import Line , Path , Lines , Paths , Interval
9
+ from seaborn ._marks .line import Line , Path , Lines , Paths , Range
10
10
11
11
12
12
class TestPath :
@@ -244,15 +244,15 @@ def test_xy_data(self):
244
244
assert_array_equal (verts [1 ], [3 , 4 ])
245
245
246
246
247
- class TestInterval :
247
+ class TestRange :
248
248
249
249
def test_xy_data (self ):
250
250
251
251
x = [1 , 2 ]
252
252
ymin = [1 , 4 ]
253
253
ymax = [2 , 3 ]
254
254
255
- p = Plot (x = x , ymin = ymin , ymax = ymax ).add (Interval ()).plot ()
255
+ p = Plot (x = x , ymin = ymin , ymax = ymax ).add (Range ()).plot ()
256
256
lines , = p ._figure .axes [0 ].collections
257
257
258
258
for i , path in enumerate (lines .get_paths ()):
@@ -267,7 +267,7 @@ def test_mapped_color(self):
267
267
ymax = [2 , 3 , 1 , 4 ]
268
268
group = ["a" , "a" , "b" , "b" ]
269
269
270
- p = Plot (x = x , ymin = ymin , ymax = ymax , color = group ).add (Interval ()).plot ()
270
+ p = Plot (x = x , ymin = ymin , ymax = ymax , color = group ).add (Range ()).plot ()
271
271
lines , = p ._figure .axes [0 ].collections
272
272
273
273
for i , path in enumerate (lines .get_paths ()):
@@ -282,7 +282,7 @@ def test_direct_properties(self):
282
282
ymin = [1 , 4 ]
283
283
ymax = [2 , 3 ]
284
284
285
- m = Interval (color = "r" , linewidth = 4 )
285
+ m = Range (color = "r" , linewidth = 4 )
286
286
p = Plot (x = x , ymin = ymin , ymax = ymax ).add (m ).plot ()
287
287
lines , = p ._figure .axes [0 ].collections
288
288
0 commit comments