grada 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/grada/gnuplot.rb +8 -3
- metadata +1 -1
data/lib/grada/gnuplot.rb
CHANGED
@@ -51,13 +51,18 @@ class Gnuplot
|
|
51
51
|
break unless window
|
52
52
|
sleep 1
|
53
53
|
end
|
54
|
+
data_in.close
|
55
|
+
data_out.close
|
56
|
+
stderr.close
|
57
|
+
|
58
|
+
output.write(wait_th.value.exitstatus)
|
54
59
|
end
|
55
60
|
|
56
61
|
output.string
|
57
62
|
end
|
58
63
|
end
|
59
64
|
|
60
|
-
class Plot
|
65
|
+
class Gnuplot::Plot
|
61
66
|
attr_accessor :cmd, :data, :settings, :styles, :arbitrary_lines
|
62
67
|
|
63
68
|
QUOTED_METHODS = [ "title", "output", "xlabel", "x2label", "ylabel", "y2label", "clabel", "cblabel", "zlabel" ]
|
@@ -108,7 +113,7 @@ class Plot
|
|
108
113
|
end
|
109
114
|
end
|
110
115
|
|
111
|
-
class Style
|
116
|
+
class Gnuplot::Style
|
112
117
|
attr_accessor :linestyle, :linetype, :linewidth, :linecolor, :pointtype, :pointsize, :fill, :index
|
113
118
|
|
114
119
|
alias :ls :linestyle
|
@@ -154,7 +159,7 @@ class Style
|
|
154
159
|
end
|
155
160
|
end
|
156
161
|
|
157
|
-
class DataSet
|
162
|
+
class Gnuplot::DataSet
|
158
163
|
attr_accessor :title, :with, :using, :data, :linewidth, :linecolor, :matrix, :smooth, :axes, :index, :linestyle
|
159
164
|
|
160
165
|
alias :ls :linestyle
|