mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-16 16:18:11 +08:00
Add alias l for line and alias ls for lins as a trial (#17)
This commit is contained in:
@@ -178,9 +178,9 @@ module YouPlot
|
||||
@backend.barplot(data, params, count: true, reverse: options[:reverse])
|
||||
when :hist, :histogram
|
||||
@backend.histogram(data, params)
|
||||
when :line, :lineplot
|
||||
when :line, :lineplot, :l
|
||||
@backend.line(data, params, options[:fmt])
|
||||
when :lines, :lineplots
|
||||
when :lines, :lineplots, :ls
|
||||
@backend.lines(data, params, options[:fmt])
|
||||
when :scatter, :s
|
||||
@backend.scatter(data, params, options[:fmt])
|
||||
|
@@ -291,14 +291,14 @@ module YouPlot
|
||||
params.nbins = v
|
||||
end
|
||||
|
||||
when :lineplot, :line
|
||||
when :lineplot, :line, :l
|
||||
sub_parser_add_canvas
|
||||
sub_parser_add_grid
|
||||
sub_parser_add_fmt_yx
|
||||
sub_parser_add_ylim
|
||||
sub_parser_add_xlim
|
||||
|
||||
when :lineplots, :lines
|
||||
when :lineplots, :lines, :ls
|
||||
sub_parser_add_canvas
|
||||
sub_parser_add_grid
|
||||
sub_parser_add_fmt_xyxy
|
||||
|
Reference in New Issue
Block a user