Haskell plotting library similar to MATLAB

后端 未结 5 1274
天涯浪人
天涯浪人 2021-02-02 09:00

Is there a Haskell library for drawing plots similar to MATLAB, scilab or matplotlib? They all have very simple interfaces, which work like a state machine:

plot         


        
5条回答
  •  迷失自我
    2021-02-02 09:36

    There is also matplotlib-haskell library (pretty new). It is very expressive yet simple to use.

    Example:

    import Graphics.Matplotlib
    
    plotQuadraticFn :: IO ()
    plotQuadraticFn = onscreen $ plot x y
      where
        x = [-10..10]
        y = fmap (**2) x
    

提交回复
热议问题