sean.mceligot at gmail.com
Fri Apr 9 13:52:12 EDT 2010
I don't see candlesticks in Demo.hs or anything that takes more than
two (x,y) plot points.
Here's an example of what I'm trying to do.
On Fri, Apr 9, 2010 at 11:43 AM, Henning Thielemann
<gnuplot at henning-thielemann.de> wrote:
> On Thu, 8 Apr 2010, Sean McEligot wrote:
>> 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
>> (PlotStyle CandleSticks (CustomStyle )) prices
>> What I want is:
>> graph :: (Show a) => [(a,a,a,a,a)] -> ()
> For graphs beyond the most simple ones I suggest the advanced interface
> (although I have not used candle sticks so far). It is demonstrated in:
More information about the Gnuplot