Haskell plotting library similar to MATLAB

后端 未结 5 1288
天涯浪人
天涯浪人 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:31

    There is also the plot package. When used with plot-gtk graphs can be displayed and modified within GHCi. Plots can be written to disk in the formats that Cairo supports.

    The Simple interface is similar to gnuplot's:

    test_graph2 = do
         plot (ts,[point (ds,es) (Cross,red),line fs blue])
         title "Testing plot package:"
         subtitle "with 1 second of a 15Hz sine wave"
         xlabel "time (s)"
         ylabel "amplitude"
         yrange Linear (-1.25) 1.25
    

提交回复
热议问题