[haskell-gnuplot] CandleSticks

Sean McEligot sean.mceligot at gmail.com
Thu Apr 8 22:19:15 EDT 2010


How can display a candlestick. It needs five data items
(date,open,close,high,low) but plotPathStyle only takes two.

This compiles, but fails at runtime with:
"curve.gp", line 4: Not enough columns for this style

graph :: (Show a) => [(a, a)] -> IO ()
graph prices = plotPathStyle [XTime, XFormat "%m-%d", Title "CandleSticks"]
            (PlotStyle CandleSticks (CustomStyle [])) prices

What I want is:
graph :: (Show a) => [(a,a,a,a,a)] -> ()



More information about the Gnuplot mailing list