GnuplotEx.Plot.Abbreviations (gnuplot_ex v0.5.0)
Expands abbreviated keywords to full forms.
This module provides a consistent way to use short keyword names in plot functions for convenience.
Abbreviations
| Short | Full |
|---|---|
t | title or label |
xl | x_label |
yl | y_label |
zl | z_label |
xr | x_range |
yr | y_range |
zr | z_range |
c | color |
lw | line_width |
ps | point_size |
pt | point_type |
l | label |
ur | u_range |
vr | v_range |
ss | surface_style |
cl | contour_levels |
cs | contour_style |
pal | palette |
cbr | colorbar_range |
cb | colorbar |
f | filled |
a | alpha |
ir | inner_radius |
exp | explode |
sa | start_angle |
bc | border_color |
bw | border_width |
Example
iex> GnuplotEx.Plot.Abbreviations.expand([t: "Title", xr: 0..10, c: "#red"])
[title: "Title", x_range: 0..10, color: "#red"]
Summary
Functions
@spec abbreviations() :: map()
Get all available abbreviations.
Returns a map of short keys to full keys.
Expand abbreviated keywords in an options list.
Unknown keys pass through unchanged.
Example
iex> expand([t: "Title", xr: 0..10, c: "#red"])
[title: "Title", x_range: 0..10, color: "#red"]
iex> expand([custom: "value"])
[custom: "value"]