Skip to content

Commit dd9df4a

Browse files
committed
Improved testing
1 parent 9b5ca52 commit dd9df4a

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

tests/test_plot.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,34 @@ def testTwoConnectedClusters(self):
2121
mp = MapperAlgorithm(cover=BallCover(1.1, metric=dist),
2222
clustering=TrivialClustering())
2323
g = mp.fit_transform(data, data)
24-
mp_plot1 = MapperLayoutInteractive(g, colors=data, dim=2)
24+
mp_plot1 = MapperLayoutInteractive(g, dim=2,
25+
colors=data,
26+
seed=123,
27+
iterations=10,
28+
agg=np.nanmax,
29+
width=200,
30+
height=200,
31+
title='example',
32+
cmap='jet')
2533
mp_plot1.plot()
26-
mp_plot2 = MapperLayoutInteractive(g, colors=data, dim=3)
27-
mp_plot2.plot()
28-
mp_plot2.update(
34+
mp_plot2 = MapperLayoutInteractive(g, dim=3,
2935
colors=data,
3036
seed=123,
3137
iterations=10,
3238
agg=np.nanmax,
3339
width=200,
3440
height=200,
41+
title='example',
42+
cmap='jet')
43+
mp_plot2.plot()
44+
mp_plot2.update(
45+
colors=data,
46+
seed=124,
47+
iterations=15,
48+
agg=np.nanmin,
49+
width=300,
50+
height=300,
51+
title='example-updated',
3552
cmap='viridis')
3653
mp_plot2.plot()
3754
mp_plot3 = MapperLayoutStatic(g, colors=data, dim=2)

0 commit comments

Comments
 (0)