mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-07 15:41:12 +08:00
Rubocop auto correct
This commit is contained in:
parent
3b8846efbe
commit
661e5048dd
@ -1,5 +1,6 @@
|
|||||||
require 'optparse'
|
require 'optparse'
|
||||||
require_relative 'preprocessing'
|
require_relative 'preprocessing'
|
||||||
|
require_relative 'command/params'
|
||||||
|
|
||||||
module Uplot
|
module Uplot
|
||||||
Data = Struct.new(:headers, :series)
|
Data = Struct.new(:headers, :series)
|
||||||
@ -225,7 +226,7 @@ module Uplot
|
|||||||
|
|
||||||
def run
|
def run
|
||||||
parse_options
|
parse_options
|
||||||
|
|
||||||
if command == :colors
|
if command == :colors
|
||||||
Plot.colors
|
Plot.colors
|
||||||
exit
|
exit
|
||||||
|
@ -124,15 +124,15 @@ module Uplot
|
|||||||
end
|
end
|
||||||
|
|
||||||
def colors
|
def colors
|
||||||
UnicodePlot::StyledPrinter::TEXT_COLORS.each do |k,v|
|
UnicodePlot::StyledPrinter::TEXT_COLORS.each do |k, v|
|
||||||
print v
|
print v
|
||||||
print k
|
print k
|
||||||
print "\t"
|
print "\t"
|
||||||
print " ●"
|
print ' ●'
|
||||||
print "\033[0m"
|
print "\033[0m"
|
||||||
print "\t"
|
print "\t"
|
||||||
end
|
end
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_series_size(data, fmt)
|
def check_series_size(data, fmt)
|
||||||
|
@ -61,7 +61,7 @@ class UplotPreprocessingTest < Test::Unit::TestCase
|
|||||||
|
|
||||||
test :get_series do
|
test :get_series do
|
||||||
n = nil
|
n = nil
|
||||||
|
|
||||||
assert_equal([[2, 3], [5, 6], [8, 9]], @m.get_series([[1, 2, 3],
|
assert_equal([[2, 3], [5, 6], [8, 9]], @m.get_series([[1, 2, 3],
|
||||||
[4, 5, 6],
|
[4, 5, 6],
|
||||||
[7, 8, 9]], true, true))
|
[7, 8, 9]], true, true))
|
||||||
|
Loading…
Reference in New Issue
Block a user