mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-07 23:51:12 +08:00
Rubocop auto correct
This commit is contained in:
parent
ec0d157a95
commit
9a9276d024
@ -128,8 +128,8 @@ module YouPlot
|
|||||||
def plot_xyxy(data, method1, params)
|
def plot_xyxy(data, method1, params)
|
||||||
headers = data.headers
|
headers = data.headers
|
||||||
series2 = data.series
|
series2 = data.series
|
||||||
.map { |s| s.map(&:to_f) }
|
.map { |s| s.map(&:to_f) }
|
||||||
.each_slice(2).to_a
|
.each_slice(2).to_a
|
||||||
method2 = get_method2(method1)
|
method2 = get_method2(method1)
|
||||||
params.name ||= headers[0] if headers
|
params.name ||= headers[0] if headers
|
||||||
params.xlim ||= series2.map(&:first).flatten.minmax # why need?
|
params.xlim ||= series2.map(&:first).flatten.minmax # why need?
|
||||||
|
Loading…
Reference in New Issue
Block a user