Fix series name label in xyxy plot

This commit is contained in:
kojix2 2020-08-03 15:22:13 +09:00
parent edb377170d
commit 2fddc98118

View File

@ -189,7 +189,7 @@ module Uplot
x1, y1 = data.shift x1, y1 = data.shift
plot = UnicodePlot.public_send(call1, x1, y1, **@params.compact) plot = UnicodePlot.public_send(call1, x1, y1, **@params.compact)
data.each_with_index do |(xi, yi), i| data.each_with_index do |(xi, yi), i|
UnicodePlot.public_send(call2, plot, xi, yi, name: headers[i * 2]) UnicodePlot.public_send(call2, plot, xi, yi, name: headers[(i + 1) * 2])
end end
plot plot
end end