Skip to content

Repository files navigation

Dynamic-Graph

Draw and update graphs in real time with OpenGL. Suitable for displaying large amounts of frequently changing data. Line graphs and waterfall plots are supported, as well as axis drawing.

Screenshots

ScreenshotScreenshot

Installation

dynamic-graph is available on Hackage. Install with cabal install dynamic-graph.

Usage

To plot a waterfall of random data:

importControl.MonadimportControl.Monad.Trans.EitherimportControl.ConcurrentimportPipesimportqualifiedPipes.PreludeasPimportSystem.RandomimportGraphics.Rendering.OpenGLimportGraphics.DynamicGraph.WaterfallimportGraphics.DynamicGraph.WindowrandomVect::Producer [GLfloat] IO()
randomVect =P.repeatM $do
res <- replicateM 1000 randomIO
threadDelay 10000return res
main = eitherT putStrLnreturn$do
setupGLFW
waterfall <- window 1024480$ renderWaterfall 10001000 jet_mod
lift $ runEffect $ randomVect >-> waterfall

About

Draw and update graphs in real time with OpenGL

Resources

Stars

17 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages