Removed count option for barplot

This commit is contained in:
kojix2 2020-10-10 23:07:57 +09:00
parent ccfbaa7bde
commit 4544c0e456
2 changed files with 3 additions and 8 deletions

View File

@ -27,7 +27,6 @@ module Uplot
headers = parser.headers headers = parser.headers
pass = parser.pass pass = parser.pass
output = parser.output output = parser.output
count = parser.count
fmt = parser.fmt fmt = parser.fmt
debug = parser.debug debug = parser.debug
@ -44,7 +43,7 @@ module Uplot
pp @data if @debug pp @data if @debug
plot = case command plot = case command
when :bar, :barplot when :bar, :barplot
Plot.barplot(data, params, @count) Plot.barplot(data, params)
when :count, :c when :count, :c
Plot.barplot(data, params, count = true) Plot.barplot(data, params, count = true)
when :hist, :histogram when :hist, :histogram

View File

@ -7,7 +7,7 @@ module Uplot
class Command class Command
class Parser class Parser
attr_reader :command, :params, attr_reader :command, :params,
:delimiter, :transpose, :headers, :pass, :output, :count, :fmt, :debug :delimiter, :transpose, :headers, :pass, :output, :fmt, :debug
def initialize def initialize
@command = nil @command = nil
@ -18,7 +18,6 @@ module Uplot
@headers = nil @headers = nil
@pass = false @pass = false
@output = $stderr @output = $stderr
@count = false
@fmt = 'xyy' @fmt = 'xyy'
@debug = false @debug = false
end end
@ -125,9 +124,6 @@ module Uplot
parser.on('--xscale VAL', String) do |v| parser.on('--xscale VAL', String) do |v|
params.xscale = v params.xscale = v
end end
parser.on('--count', TrueClass) do |v|
@count = v
end
when :count, :c when :count, :c
parser.on('--symbol VAL', String) do |v| parser.on('--symbol VAL', String) do |v|
@ -225,4 +221,4 @@ module Uplot
end end
end end
end end
end end