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
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