GnuplotEx.Command protocol (gnuplot_ex v0.5.0)
Protocol for formatting Elixir terms as gnuplot command strings.
This protocol enables extensible command serialization. Users can implement it for custom types to integrate with the plotting API.
Built-in Implementations
| Type | Example Input | Output |
|---|---|---|
| Atom | :set | "set" |
| Integer | 42 | "42" |
| Float | 3.14 | "3.14" |
| String | "Title" | "\"Title\"" |
| Charlist | 'sin(x)' | "sin(x)" |
| Range | 0..10 | "[0:10]" |
| Tuple | {800, 600} | "800,600" |
| List | [:set, :term] | "set term" |
| PlotList | comma-separated | "a, b, c" |
Summary
Functions
Format an Elixir term as a gnuplot command string.
Types
@type t() :: term()
All the types that implement this protocol.