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

TypeExample InputOutput
Atom:set"set"
Integer42"42"
Float3.14"3.14"
String"Title""\"Title\""
Charlist'sin(x)'"sin(x)"
Range0..10"[0:10]"
Tuple{800, 600}"800,600"
List[:set, :term]"set term"
PlotListcomma-separated"a, b, c"

Summary

Types

t()

All the types that implement this protocol.

Functions

Format an Elixir term as a gnuplot command string.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

format(term)

@spec format(t()) :: String.t()

Format an Elixir term as a gnuplot command string.