dynamic-graph alternatives and similar packages
Based on the "dynamic" category.
Alternatively, view dynamic-graph alternatives based on common mentions on social networks and blogs.
Do you think we are missing an alternative of dynamic-graph or a related project?
Popular Comparisons
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