Animate
Hereafter are presented the available options for animations in mathlayer®.
Specific options for animated graphs
Options | Description | Values | Default Values |
timelapse | Specifies the lapse of time between two frames of the animation in miliseconds units. | Any number from 140. | 500 |
navbarWidth | Sets the width of the navbar to adapt it to the size of the animation. | Any number from 350. | 520 |
navbarPosition | Sets whether the navbar will be set on top or under the animation. | 'top' or 'bottom'. | 'bottom' |
animPaused | Sets whether the animation starts paused when the page is loaded or not. | true or false. | false |
visual | Specifies the visualization type when the input for the animation is a table. | 'bar', 'area', 'plot', 'scatter' or 'stem'. | 'bar' |
o = struct% initializing options struct for individual graphs
o.width = 500 o.height = 350 o.show = false options = struct% initializing options struct for animation
options.timelapse = 400 options.navbarWidth = 450 options.width = 500 options.height = 350 p1 = plot([1 2;3 1],o) p2 = plot([4 1;9 5],o) p3 = plot([5 5;3 9],o) p4 = plot([6 3;2 7],o) a2 = animate({p1,p2,p3,p4},options)