From 987198a13640c65f0d66b998899961c4196082d9 Mon Sep 17 00:00:00 2001 From: TheKnight Date: Sun, 9 Dec 2012 08:10:48 +0400 Subject: [PATCH] Fix bug in SPlot.to_gplot implementation. --- lib/gnuplot.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gnuplot.rb b/lib/gnuplot.rb index a66b18e..aa1028a 100644 --- a/lib/gnuplot.rb +++ b/lib/gnuplot.rb @@ -182,8 +182,9 @@ def initialize (io = nil, cmd = "splot") end def to_gplot (io = "") - @sets.each { |var, val| io << "set #{var} #{val}\n" } - + @settings.each do |setting| + io << setting.map(&:to_s).join(" ") << "\n" + end io end