GnuplotEx.Command.Formatter (gnuplot_ex v0.5.0)

Helper functions for formatting multiple commands.

Summary

Functions

Format a list of commands into a gnuplot script string.

Functions

format_commands(commands)

@spec format_commands([list()]) :: String.t()

Format a list of commands into a gnuplot script string.

Commands are joined with semicolons and newlines.

Example

iex> commands = [[:set, :terminal, :svg], [:plot, 'sin(x)']]
iex> GnuplotEx.Command.Formatter.format_commands(commands)
"set terminal svg;\nplot sin(x)"