Skip to content

simonschmidt/Flot-Adaptive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flot.adaptive

Adaptive sampling plugin for Flot

Automatically samples a function in desired range

Animation

##Usage

To plot someFunction between 0 and 10:

$.plot("#placeholder", 
  [{ 
    data: someFunction,
    adaptive: { range: [0, 10] }
  }]);

Options

Option Description Default
range [xmin, xmax] range to plot it in Required
initialPoints Number of (equidistant) points to start with 25
extraPoints [x0, x1, ...] extra points to include null
maxRecursion 5
maxAngle Maximum angle between adjacent points (in radians ofc) 0.1
maxTime Maximum time in seconds spent refining, initialPoints and extraPoints are always calculated
minStep Minimum step-size relative to x-axis width 1/1000
minStepAbsolute Minimum absolute step-size, overides minStep
debug false

About

Adaptive sampling for Flot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published