sandialabs / slycat

Web-based data science analysis and visualization platform.
http://slycat.readthedocs.org
Other
75 stars 19 forks source link

Add dual axes to scatterplots #644

Open pjcross opened 8 years ago

pjcross commented 8 years ago

A user has requested the ability to have 2 y axes and to plot points twice, once for each of the variables selected as y axes. The y axes would appear on either side of the plot and we would need a way to distinguish which points are associated with which axis. I'd originally thought that shape could be used, but that wouldn't scale well. So I think we give up color-coding by a third variable and use color to distinguish the 2 sets. To show the correspondence between color and axis, the legend is replaced by the names of the two axes variables and their associated colors. We should disable point color selection if a 2nd axis is selected.

pjcross commented 8 years ago

This should also be possible for the x axis. I'm trying to think of how we can provide user controls without creating a 2nd set of buttons (e.g. 2nd x axis, 2nd y axis). I'm wondering if we could use a control-click within the variable list to pick a 2nd variable in each of the existing drop-downs.