grada 2.1.4 → 2.1.5
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.
- data/lib/grada.rb +0 -16
- metadata +1 -1
data/lib/grada.rb
CHANGED
@@ -215,16 +215,8 @@ class Grada
|
|
215
215
|
else
|
216
216
|
raise NoPlotDataError if ! @y.nil? && @x.size != @y.size
|
217
217
|
|
218
|
-
style = Gnuplot::Style.new do |ds|
|
219
|
-
ds.index = 0
|
220
|
-
STYLES.each do |style|
|
221
|
-
ds.send("#{style}=", dic[style]) if dic[style]
|
222
|
-
end
|
223
|
-
end.to_s
|
224
|
-
|
225
218
|
plot.data << Gnuplot::DataSet.new([@x,@y]) do |ds|
|
226
219
|
ds.with = @opts[:with]
|
227
|
-
ds.with += style
|
228
220
|
end
|
229
221
|
end
|
230
222
|
end
|
@@ -249,16 +241,8 @@ class Grada
|
|
249
241
|
plot.set "xtics #{@x.min},#{(@x.max-@x.min)/5},#{@x.max}"
|
250
242
|
plot.set "tics out nomirror"
|
251
243
|
|
252
|
-
style = Gnuplot::Style.new do |ds|
|
253
|
-
ds.index = 0
|
254
|
-
STYLES.each do |style|
|
255
|
-
ds.send("#{style}=", dic[style]) if dic[style]
|
256
|
-
end
|
257
|
-
end.to_s
|
258
|
-
|
259
244
|
plot.data << Gnuplot::DataSet.new(@x) do |ds|
|
260
245
|
ds.with = 'boxes'
|
261
|
-
ds.with += style
|
262
246
|
ds.title = @opts[:x_label]
|
263
247
|
ds.using = '($1):(1.0)'
|
264
248
|
ds.smooth = 'freq'
|