lib/gsl/gnuplot.rb in rb-gsl-1.16.0.4 vs lib/gsl/gnuplot.rb in rb-gsl-1.16.0.5
- old
+ new
@@ -16,11 +16,11 @@
self[0].zip( *self[1..-1] ).to_gplot
end
end
def to_gsplot
f = ""
-
+
if ( self[0].kind_of? Array ) then
x = self[0]
y = self[1]
d = self[2]
@@ -33,9 +33,9 @@
elsif ( self[0].kind_of? Numeric ) then
self.length.times do |i| f << "#{self[i]}\n" end
else
self[0].zip( *self[1..-1] ).to_gsplot
end
-
+
f
end
end