Tag Info

New answers tagged

4

Let's give you some freedom of choice here and since you explicitly avoided Manipulate, let's start with this. The piece that creates the plot, the rectangle and the triangles will almost be the same in all three examples. In all three examples, I will use locators, that have no appearance but will be forced to stay on the y=0 line, so that they are always ...


2

This should do it. leftTriangle = Magnify[Graphics[{Directive[ColorData[1][1], Opacity[0.5]], Triangle[{{-1, 1}, {0, 0}, {-1, -1}}]}, AlignmentPoint -> Left], 0.1]; rightTriangle = Magnify[Graphics[{Directive[ColorData[1][1], Opacity[0.5]], Triangle[{{1, 1}, {0, 0}, {1, -1}}]}, AlignmentPoint -> Right], 0.1]; plot = Plot[Sin[x], {x, -Pi, ...



Top 50 recent answers are included