Skip to content

Commit 6dabccd

Browse files
committed
Improved docs. Updated version
1 parent a4ae4f2 commit 6dabccd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "tda-mapper"
7-
version = "0.11.0"
7+
version = "0.11.1"
88
description = "A simple and efficient Python implementation of Mapper algorithm for Topological Data Analysis"
99
readme = "README.md"
1010
authors = [{ name = "Luca Simi", email = "[email protected]" }]

src/tdamapper/_plot_plotly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def plot_plotly(
5757
mapper_plot,
5858
width: int,
5959
height: int,
60-
node_size: Optional[Union[int, List[int]]] = DEFAULT_NODE_SIZE,
60+
node_size: Optional[Union[int, float, List[Union[int, float]]]] = DEFAULT_NODE_SIZE,
6161
colors=None,
6262
title: Optional[Union[str, List[str]]] = None,
6363
agg=np.nanmean,

src/tdamapper/plot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ def plot_plotly(
167167
node in the graph, useful for highlighting different features of
168168
the data.
169169
:type colors: array-like of shape (n,) or list-like of size n
170-
:param node_size: A scaling factor for node size. Defaults to 1.
171-
:type node_size: float, optional
170+
:param node_size: A scaling factor for node size. When node_size is a
171+
list, the figure will display a slider with the specified values.
172+
Defaults to 1.
173+
:type node_size: int, float or list, optional
172174
:param agg: A function used to aggregate the `colors` array over the
173175
points within a single node. The final color of each node is
174176
obtained by mapping the aggregated value with the colormap `cmap`.

0 commit comments

Comments
 (0)