Popularity
7.5
Growing
Activity
0.4
-
19
4
6

Monthly Downloads: 227
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Graphics     Dynamic    
Latest version: v0.1.0.6

dynamic-graph alternatives and similar packages

Based on the "dynamic" category

Do you think we are missing an alternative of dynamic-graph or a related project?

Add another 'dynamic' Package

README

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

[Screenshot](../screenshots/screenshots/line.png?raw=true) [Screenshot](../screenshots/screenshots/waterfall.png?raw=true)

Installation

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

Usage

To plot a waterfall of random data:


import Control.Monad
import Control.Monad.Trans.Either
import Control.Concurrent
import Pipes
import qualified Pipes.Prelude as P
import System.Random
import Graphics.Rendering.OpenGL

import Graphics.DynamicGraph.Waterfall
import Graphics.DynamicGraph.Window

randomVect :: Producer [GLfloat] IO ()
randomVect =  P.repeatM $ do
    res <- replicateM 1000 randomIO
    threadDelay 10000
    return res

main = eitherT putStrLn return $ do
    setupGLFW
    waterfall <- window 1024 480 $ renderWaterfall 1000 1000 jet_mod

    lift $ runEffect $ randomVect >-> waterfall