Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"triangular" sliders when plotting with @interact ?

Hello! I am interested in plotting a function fu(x) (or fu(x,y)) using @interact. The subscript u=(u1,u2,u3) is a vector in the 2-dimensional simplex, so u is a real-valued vector with nonnegative entries summing to 1.

I am aware of single-variable sliders. For the plot of this function fu, it seems natural to me to adjust by clicking a point in this simplex, where the simplex is drawn off to the side as an equilateral triangle with corners labeled (1,0,0),(0,1,0),(0,0,1).

Are features like this built-in? I am okay to use either notebook!