ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 01 Dec 2020 19:21:05 +0100"triangular" sliders when plotting with @interact ?https://ask.sagemath.org/question/53431/triangular-sliders-when-plotting-with-interact/Hello! I am interested in plotting a function $f_{u}(x)$ (or $f_u(x,y)$) using @interact. The subscript $u = (u_1, u_2, u_3)$ 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 $f_u$, 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! Sun, 13 Sep 2020 00:41:36 +0200https://ask.sagemath.org/question/53431/triangular-sliders-when-plotting-with-interact/Comment by TheHiggsBozo for <p>Hello! I am interested in plotting a function $f_{u}(x)$ (or $f_u(x,y)$) using @interact. The subscript $u = (u_1, u_2, u_3)$ is a vector in the $2$-dimensional simplex, so $u$ is a real-valued vector with nonnegative entries summing to $1$. </p>
<p>I am aware of single-variable sliders. For the plot of this function $f_u$, 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)$. </p>
<p>Are features like this built-in? I am okay to use either notebook! </p>
https://ask.sagemath.org/question/53431/triangular-sliders-when-plotting-with-interact/?comment=54494#post-id-54494Thanks for your comment. I'm months late, but I appreciate your effort. Seems like it's too much trouble to assemble in sage :(Tue, 01 Dec 2020 19:21:05 +0100https://ask.sagemath.org/question/53431/triangular-sliders-when-plotting-with-interact/?comment=54494#post-id-54494Comment by Florentin Jaffredo for <p>Hello! I am interested in plotting a function $f_{u}(x)$ (or $f_u(x,y)$) using @interact. The subscript $u = (u_1, u_2, u_3)$ is a vector in the $2$-dimensional simplex, so $u$ is a real-valued vector with nonnegative entries summing to $1$. </p>
<p>I am aware of single-variable sliders. For the plot of this function $f_u$, 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)$. </p>
<p>Are features like this built-in? I am okay to use either notebook! </p>
https://ask.sagemath.org/question/53431/triangular-sliders-when-plotting-with-interact/?comment=53460#post-id-53460I don't think a feature like this exist, you would have to code the widget yourself.
You could try something like [this](https://gist.github.com/ellisonbg/0fd6d758b2fbd0185cdd), but it hasn't been updated in 6 years...
The simpler option is to use 2 sliders to control the coordinates of your point, linked to a dynamic plot to visualize the position in real time.Tue, 15 Sep 2020 11:15:22 +0200https://ask.sagemath.org/question/53431/triangular-sliders-when-plotting-with-interact/?comment=53460#post-id-53460