ContextLab / hypertools

A Python toolbox for gaining geometric insights into high-dimensional data
http://hypertools.readthedocs.io/en/latest/
MIT License
1.83k stars 160 forks source link

extend colors api #15

Closed andrewheusser closed 7 years ago

andrewheusser commented 7 years ago

Currently, colors can only be specified by list. e.g. plot_coords.plot_coords([x[0],x[1]],color=['r','g']) but there are cases where we may want to specify the color per dot. Any ideas about how to add this functionality?

jeremymanning commented 7 years ago

in the matlab code, the vals2colors function maps a set of values (one per observation) onto a colormap. i think that's a good starting point-- for each set of observation, we assign a color via a vector of scalar values of length number-of-observations. (an observation is a row of a data matrix.)

andrewheusser commented 7 years ago

this is now implemented on the point_colors branch. closing issue