gnuplot 2.0 → 2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/gnuplot.rb +6 -4
  2. metadata +2 -2
@@ -193,10 +193,12 @@ class Array
193
193
  if ( self[0].kind_of? Array ) then
194
194
  tmp = self[0].zip( *self[1..-1] )
195
195
  tmp.collect { |a| a.join(" ") }.join("\n") + "\n"
196
- else
196
+ elsif ( self[0].kind_of? Numeric ) then
197
197
  s = ""
198
198
  self.length.times { |i| s << "#{self[i]}\n" }
199
199
  s
200
+ else
201
+ self[0].zip( *self[1..-1] ).to_gplot
200
202
  end
201
203
  end
202
204
 
@@ -214,10 +216,10 @@ class Array
214
216
  end
215
217
  # f << "\n"
216
218
  end
219
+ elsif ( self[0].kind_of? Numeric ) then
220
+ self.length.times do |i| f << "#{self[i]}\n" end
217
221
  else
218
- self.length.times do |i|
219
- f << "#{self[i]}\n"
220
- end
222
+ self[0].zip( *self[1..-1] ).to_gsplot
221
223
  end
222
224
 
223
225
  f
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.1
3
3
  specification_version: 1
4
4
  name: gnuplot
5
5
  version: !ruby/object:Gem::Version
6
- version: "2.0"
7
- date: 2004-11-11
6
+ version: "2.1"
7
+ date: 2004-11-17
8
8
  summary: Utility library to aid in interacting with gnuplot
9
9
  require_paths:
10
10
  - lib