mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
31 lines
418 B
Ruby
31 lines
418 B
Ruby
![]() |
module Uplot
|
||
|
class Command
|
||
|
Params = Struct.new(
|
||
|
# Sort me!
|
||
|
:title,
|
||
|
:width,
|
||
|
:height,
|
||
|
:border,
|
||
|
:margin,
|
||
|
:padding,
|
||
|
:color,
|
||
|
:xlabel,
|
||
|
:ylabel,
|
||
|
:labels,
|
||
|
:symbol,
|
||
|
:xscale,
|
||
|
:nbins,
|
||
|
:closed,
|
||
|
:canvas,
|
||
|
:xlim,
|
||
|
:ylim,
|
||
|
:grid,
|
||
|
:name
|
||
|
) do
|
||
|
def to_hc
|
||
|
to_h.compact
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|