Skip to content

Commit bf11883

Browse files
committed
Applied class based approach to plotly plot
1 parent 9c15818 commit bf11883

File tree

3 files changed

+509
-491
lines changed

3 files changed

+509
-491
lines changed

docs/source/notebooks/circles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
fig = plot.plot_plotly(
9797
colors=labels,
9898
cmap=["jet", "viridis", "cividis"],
99-
node_size=[0.0, 0.5, 1.0, 1.5, 2.0],
99+
node_size=[0.25 * x for x in range(9)],
100100
agg=np.nanmean,
101101
)
102102

@@ -117,7 +117,7 @@
117117
fig = plot.plot_plotly(
118118
colors=labels,
119119
cmap=["jet", "viridis", "cividis"],
120-
node_size=[0.0, 0.5, 1.0, 1.5, 2.0],
120+
node_size=[0.25 * x for x in range(9)],
121121
agg=np.nanstd,
122122
)
123123

docs/source/notebooks/digits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def mode(arr):
103103
colors=labels,
104104
cmap=["jet", "viridis", "cividis"],
105105
agg=mode,
106-
node_size=[0.0, 0.5, 1.0, 1.5, 2.0],
106+
node_size=[0.25 * x for x in range(9)],
107107
title="mode of digits",
108108
)
109109

@@ -132,7 +132,7 @@ def entropy(arr):
132132
colors=labels,
133133
cmap=["jet", "viridis", "cividis"],
134134
agg=entropy,
135-
node_size=[0.0, 0.5, 1.0, 1.5, 2.0],
135+
node_size=[0.25 * x for x in range(9)],
136136
title="entropy of digits",
137137
)
138138

0 commit comments

Comments
 (0)