mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Remove unused variable
This commit is contained in:
parent
42cadee553
commit
dbbfd366be
@ -127,11 +127,10 @@ module YouPlot
|
||||
|
||||
def plot_xyxy(data, method1, params)
|
||||
headers = data.headers
|
||||
series = data.series
|
||||
series2 = data.series
|
||||
.map { |s| s.map(&:to_f) }
|
||||
.each_slice(2).to_a
|
||||
method2 = get_method2(method1)
|
||||
series.map! { |s| s.map(&:to_f) }
|
||||
series2 = series.each_slice(2).to_a
|
||||
series = nil
|
||||
params.name ||= headers[0] if headers
|
||||
params.xlim ||= series2.map(&:first).flatten.minmax # why need?
|
||||
params.ylim ||= series2.map(&:last).flatten.minmax # why need?
|
||||
|
Loading…
Reference in New Issue
Block a user