mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Fix a bug
This commit is contained in:
parent
abba3e1678
commit
3b34ca0e27
@ -109,7 +109,7 @@ module YouPlot
|
||||
params.name ||= headers[0] if headers
|
||||
params.xlim ||= series2.map(&:first).flatten.minmax # why need?
|
||||
params.ylim ||= series2.map(&:last).flatten.minmax # why need?
|
||||
x1, y1 = series.shift
|
||||
x1, y1 = series2.shift
|
||||
plot = UnicodePlot.public_send(method1, x1, y1, **params.to_hc)
|
||||
series2.each_with_index do |(xi, yi), i|
|
||||
UnicodePlot.public_send(method2, plot, xi, yi, name: headers&.[]((i + 1) * 2))
|
||||
|
Loading…
Reference in New Issue
Block a user