gnuplot-0.5: 2D and 3D plots using gnuplot

Safe HaskellSafe-Infered



Provide a class that renders multiple Haskell values in a text form that is accessible by gnuplot.

Maybe we add a method for the binary interface to gnuplot later.



class C a whereSource


text :: a -> [ShowS]Source

For values that are also in Atom class, text must generate a singleton list.

columnCount :: ColumnCount aSource

It must hold ColumnCount (length (text x)) == columnCount.


C Double 
C Float 
C Int 
C Int8 
C Int16 
C Int32 
C Int64 
C Integer 
C Word8 
C Word16 
C Word32 
C Word64 
C UTCTime 
C Day 
Integral a => C (Ratio a) 
(C a, C b) => C (a, b) 
(C a, C b, C c) => C (a, b, c) 
(C a, C b, C c, C d) => C (a, b, c, d) 

newtype ColumnCount a Source

Count numbers of gnuplot data columns for the respective type.

Somehow a writer monad with respect to Sum monoid without material monadic result.

Cf. ColumnSet module.


ColumnCount Int