You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.textile
+7-24Lines changed: 7 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,15 +29,11 @@ h2. Ruby Gnuplot Concepts
29
29
plot:
30
30
31
31
32
-
# Instantiate a @Plot@ or @Splot@ object and set parameters by gnuplot
33
-
# variable name.
32
+
# Instantiate a @Plot@ or @Splot@ object and set parameters by gnuplot variable name.
34
33
35
-
# Instantiate @DataSet@ objects and attach Ruby objects containing
36
-
the data to be plotted to the @DataSet@. Attach properties that modify
37
-
the plot command using the modifier name.
34
+
# Instantiate @DataSet@ objects and attach Ruby objects containing the data to be plotted to the @DataSet@. Attach properties that modify the plot command using the modifier name.
38
35
39
-
# Send the @Plot@/@Splot@ object to a @Gnuplot@ instance for
40
-
plotting.
36
+
# Send the @Plot@/@Splot@ object to a @Gnuplot@ instance for plotting.
41
37
42
38
The Version 2.0 interface makes very heavy use of blocks leading to very
43
39
readable code.
@@ -90,26 +86,13 @@ h3. Simple sin wave
90
86
bq. The following example simply plots the value of sin(x) between the
91
87
ranges of -10 and 10. A few points to notice:
92
88
93
-
* The code uses nested blocks to construct the plot. The newly
94
-
created object is passed to the block so it can be modified in
95
-
place.
89
+
* The code uses nested blocks to construct the plot. The newly created object is passed to the block so it can be modified in place.
96
90
97
-
* Each of the gnuplot plot variables are modified using the
98
-
variable name as a method name on the plot object or on the dataset
99
-
object. The wrapper also takes care of the single quoting that is
100
-
required on some of the variables like @title@, @ylabel@, and @xlabel@.
101
-
91
+
* Each of the gnuplot plot variables are modified using the variable name as a method name on the plot object or on the dataset object. The wrapper also takes care of the single quoting that is required on some of the variables like @title@, @ylabel@, and @xlabel@.
102
92
103
-
* The plot object simply has an array of @DataSet@s. The
104
-
constructor initializes this empty array before yielding to the
105
-
block. This method uses the @<<@ operator to add the @DataSet@ to
106
-
the plot.
107
-
93
+
* The plot object simply has an array of @DataSet@s. The constructor initializes this empty array before yielding to the block. This method uses the @<<@ operator to add the @DataSet@ to the plot.
108
94
109
-
* When the plot block ends, if an @IO@ object is given to the @Plot@
110
-
constructor, the plot commands will be written to the @IO@ object.
111
-
Any object can be passed to the constructor as long as it
112
-
understands the @<<@ operator.
95
+
* When the plot block ends, if an @IO@ object is given to the @Plot@ constructor, the plot commands will be written to the @IO@ object. Any object can be passed to the constructor as long as it understands the @<<@ operator.
0 commit comments