mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 15:11:12 +08:00
Fix series name label in xyxy plot
This commit is contained in:
parent
edb377170d
commit
2fddc98118
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user