gnuplot- 2D and 3D plots using gnuplot

Safe HaskellSafe-Inferred




data T Source

Every option represents an internal state in gnuplot. It is altered with gnuplot's set command. The first field in T is the name of the option and the name of the according internal state in gnuplot.

Sometimes the addressed state is not explicitly mentioned but is expressed by the syntax of the values. E.g. you can write set grid xtics and set grid noxtics, but both commands refer to the same internal boolean variable, that we like to call xtics. It is important that the gnuplot Haskell bindings know that these two set commands refer to the same gnuplot state, since we want to simulate a stateless functional interface in front of a stateful imperative one.

In case of a such a hidden state, we manage an identifier in the second field of T. It is mainly used for distinguishing different hidden states, that are accessed by the same set variable. This second field may not contain valid gnuplot identifiers, however you might use the field for formatting boolean options using addBool.


Eq T 
Ord T 
Show T 

custom :: String -> String -> TSource

Constructs a generic option from Strings for the first and second field of T.

This is very flexible, but not very safe. Use it only as fall-back, if there is no specific setter function in Graphics.Gnuplot.Frame.OptionSet.