lib/gsl/gnuplot.rb in gsl-1.15.3 vs lib/gsl/gnuplot.rb in gsl-1.16.0.6

- old
+ new

@@ -1,6 +1,6 @@ -require("gnuplot") +require 'gnuplot' class Array def to_gplot if ( self[0].kind_of? Array ) then tmp = self[0].zip( *self[1..-1] ) @@ -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