mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 15:11:12 +08:00
Rename Preprocess -> Preprocessing
This commit is contained in:
parent
c426378bda
commit
d17143f7fa
@ -1,5 +1,5 @@
|
|||||||
module Uplot
|
module Uplot
|
||||||
module Preprocess
|
module Preprocessing
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
def input(input, delimiter, headers, transpose)
|
def input(input, delimiter, headers, transpose)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
require 'unicode_plot'
|
require 'unicode_plot'
|
||||||
require 'uplot/version'
|
require 'uplot/version'
|
||||||
require 'uplot/preprocess'
|
require 'uplot/Preprocessing'
|
||||||
require 'uplot/command.rb'
|
require 'uplot/command.rb'
|
||||||
|
|
||||||
module Uplot
|
module Uplot
|
||||||
|
@ -247,7 +247,7 @@ module Uplot
|
|||||||
while input = Kernel.gets(nil)
|
while input = Kernel.gets(nil)
|
||||||
input.freeze
|
input.freeze
|
||||||
@raw_inputs << input
|
@raw_inputs << input
|
||||||
@data = Preprocess.input(input, @delimiter, @headers, @transpose)
|
@data = Preprocessing.input(input, @delimiter, @headers, @transpose)
|
||||||
case plot_type
|
case plot_type
|
||||||
when :bar, :barplot
|
when :bar, :barplot
|
||||||
barplot(@data)
|
barplot(@data)
|
||||||
@ -278,7 +278,7 @@ module Uplot
|
|||||||
headers = data.headers
|
headers = data.headers
|
||||||
series = data.series
|
series = data.series
|
||||||
if @count
|
if @count
|
||||||
series = Preprocess.count(series[0])
|
series = Preprocessing.count(series[0])
|
||||||
params.title = headers[0] if headers
|
params.title = headers[0] if headers
|
||||||
end
|
end
|
||||||
params.title ||= headers[1] if headers
|
params.title ||= headers[1] if headers
|
||||||
|
Loading…
Reference in New Issue
Block a user