Function plot_static_mapper_graph produces a wrong colouring of the nodes of the mapper graph. This happens apparently only for variables with large ranges.
In the dropdown menu 'Column A', graph nodes are coloured differently according to the mean value of the elements in the node.
Actual behaviour
In the dropdown menu 'Column A', all graph nodes are coloured by yellow, which corresponds to high values (above 900). Notice that colouring is correct for columns 'B' and 'C' which have smaller value ranges than 'A'.
Describe the bug
Function
plot_static_mapper_graph
produces a wrong colouring of the nodes of the mapper graph. This happens apparently only for variables with large ranges.To reproduce
Expected behavior
In the dropdown menu 'Column A', graph nodes are coloured differently according to the mean value of the elements in the node.
Actual behaviour
In the dropdown menu 'Column A', all graph nodes are coloured by yellow, which corresponds to high values (above 900). Notice that colouring is correct for columns 'B' and 'C' which have smaller value ranges than 'A'.
Versions
Darwin-19.4.0-x86_64-i386-64bit Python 3.7.4 (default, Aug 13 2019, 15:17:50) [Clang 4.0.1 (tags/RELEASE_401/final)] NumPy 1.18.1 SciPy 1.3.1 Joblib 0.14.1 Scikit-learn 0.22.2.post1 Giotto-tda 0.2.1
Additional context