gnuplot 2.3.5 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +48 -0
- data/README.textile +4 -48
- data/Rakefile +6 -1
- metadata +20 -36
data/ChangeLog
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
2.3.6
|
2
|
+
* Cleanup readme (thanks blambeau again, really, for the snippets)
|
3
|
+
|
1
4
|
2.3.5
|
2
5
|
* Cleanup readme, add examples as real code files (thanks blambeau!)
|
3
6
|
|
@@ -52,3 +55,48 @@ Version 2.0 10-Nov-2004
|
|
52
55
|
* The 2.0 version of the gnuplot interface is a cross between the original,
|
53
56
|
object oriented version, and the version 1.0 which was simply a string
|
54
57
|
manipulation library.
|
58
|
+
|
59
|
+
|
60
|
+
h3. Version 0.9
|
61
|
+
|
62
|
+
bq.
|
63
|
+
My first attempt at a Ruby interface to gnuplot was an object interface
|
64
|
+
encapsulating gnuplot language. This was taken directly from the Python
|
65
|
+
gnuplot interface. In spite of my being very familiar with Gnuplot and
|
66
|
+
Ruby and being the author of the RGnuplot package, I found it
|
67
|
+
non-intuitive to use the RGnuplot package. I found myself constantly
|
68
|
+
looking at the code to figure out what I needed to do.
|
69
|
+
This was not sufficient and did not sit well.
|
70
|
+
|
71
|
+
h3. Version 1.0
|
72
|
+
|
73
|
+
bq.
|
74
|
+
The second attempt at a Ruby interface was to do absolutely nothing but
|
75
|
+
use Ruby's built in string manipulation methods. This meant that I
|
76
|
+
could simply use my knowledge of Gnuplot without having to worry about
|
77
|
+
objects.
|
78
|
+
While in some ways an improvement over Version 0.9, it still did not sit
|
79
|
+
well with me.
|
80
|
+
|
81
|
+
h3. Version 2.0
|
82
|
+
|
83
|
+
bq.
|
84
|
+
After attending RubyConf 2004 I was inspired by Rich Kilmer's use of
|
85
|
+
Ruby to implement domain specific languages. That is the current
|
86
|
+
implementation of Gnuplot and quite probably the one that I'll stick
|
87
|
+
with for some time. This version combines the direct mapping of the
|
88
|
+
gnuplot language without wrapping with the ruby syntax and mechanism of
|
89
|
+
adding methods to existing classes to interface Ruby objects with
|
90
|
+
gnuplot.
|
91
|
+
|
92
|
+
h2. Setup
|
93
|
+
|
94
|
+
h3. Version 2.2
|
95
|
+
|
96
|
+
If the 'gnuplot' command is in your path then there is no required
|
97
|
+
setup. If the gnuplot executable for your system is called something other
|
98
|
+
than simply 'gnuplot' then set the RB_GNUPLOT environment variable to the
|
99
|
+
name of the executable. This must either be a full path to the gnuplot
|
100
|
+
command or an executable filename that exists in your PATH environment
|
101
|
+
variable.
|
102
|
+
|
data/README.textile
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
h1. Ruby Gnuplot - How To
|
2
2
|
|
3
3
|
p=.
|
4
|
-
["Rubyforge Project
|
5
|
-
page":http://rubyforge.org/projects/rgplot]
|
6
4
|
["ChangeLog":ChangeLog]
|
7
5
|
["Authors":AUTHORS.txt]
|
8
6
|
["License":LICENSE.txt]
|
@@ -13,50 +11,8 @@ h2. History and Background
|
|
13
11
|
plots. It has a unique place in academia as it was one of the first
|
14
12
|
freely available programs for plot generation. I started using gnuplot
|
15
13
|
over 10 years ago while pursuing my Master's degree in Physics and have
|
16
|
-
been using it actively ever since.
|
17
|
-
|
18
|
-
h3. Version 0.9
|
19
|
-
|
20
|
-
bq.
|
21
|
-
My first attempt at a Ruby interface to gnuplot was an object interface
|
22
|
-
encapsulating gnuplot language. This was taken directly from the Python
|
23
|
-
gnuplot interface. In spite of my being very familiar with Gnuplot and
|
24
|
-
Ruby and being the author of the RGnuplot package, I found it
|
25
|
-
non-intuitive to use the RGnuplot package. I found myself constantly
|
26
|
-
looking at the code to figure out what I needed to do.
|
27
|
-
This was not sufficient and did not sit well.
|
28
|
-
|
29
|
-
h3. Version 1.0
|
30
|
-
|
31
|
-
bq.
|
32
|
-
The second attempt at a Ruby interface was to do absolutely nothing but
|
33
|
-
use Ruby's built in string manipulation methods. This meant that I
|
34
|
-
could simply use my knowledge of Gnuplot without having to worry about
|
35
|
-
objects.
|
36
|
-
While in some ways an improvement over Version 0.9, it still did not sit
|
37
|
-
well with me.
|
38
|
-
|
39
|
-
h3. Version 2.0
|
40
|
-
|
41
|
-
bq.
|
42
|
-
After attending RubyConf 2004 I was inspired by Rich Kilmer's use of
|
43
|
-
Ruby to implement domain specific languages. That is the current
|
44
|
-
implementation of Gnuplot and quite probably the one that I'll stick
|
45
|
-
with for some time. This version combines the direct mapping of the
|
46
|
-
gnuplot language without wrapping with the ruby syntax and mechanism of
|
47
|
-
adding methods to existing classes to interface Ruby objects with
|
48
|
-
gnuplot.
|
49
|
-
|
50
|
-
h2. Setup
|
51
|
-
|
52
|
-
h3. Version 2.2
|
53
|
-
|
54
|
-
If the 'gnuplot' command is in your path then there is no required
|
55
|
-
setup. If the gnuplot executable for your system is called something other
|
56
|
-
than simply 'gnuplot' then set the RB_GNUPLOT environment variable to the
|
57
|
-
name of the executable. This must either be a full path to the gnuplot
|
58
|
-
command or an executable filename that exists in your PATH environment
|
59
|
-
variable.
|
14
|
+
been using it actively ever since. Now rdp maintains it.
|
15
|
+
See also the changelog for more detail.
|
60
16
|
|
61
17
|
h2. Ruby Gnuplot Concepts
|
62
18
|
|
@@ -133,11 +89,9 @@ h3. Simple sin wave
|
|
133
89
|
bq. The following example simply plots the value of sin(x) between the
|
134
90
|
ranges of -10 and 10. A few points to notice:
|
135
91
|
|
136
|
-
|
137
92
|
p. The code uses nested blocks to construct the plot. The newly
|
138
93
|
created object is passed to the block so it can be modified in
|
139
94
|
place.
|
140
|
-
|
141
95
|
|
142
96
|
p. Each of the gnuplot plot variables are modified using the
|
143
97
|
variable name as a method name on the plot object or on the dataset
|
@@ -175,6 +129,8 @@ Gnuplot.open do |gp|
|
|
175
129
|
end
|
176
130
|
</pre>
|
177
131
|
|
132
|
+
Or you can write it out to a file (the above snippet displays the graph, in Linux, but in windows you'd need to write it to a file).
|
133
|
+
See the file examples/output_image_file.rb.
|
178
134
|
|
179
135
|
h3. Plotting discrete points
|
180
136
|
|
data/Rakefile
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
+
begin
|
2
|
+
require 'psych' # boo
|
3
|
+
rescue ::LoadError
|
4
|
+
end
|
5
|
+
|
1
6
|
require 'jeweler'
|
2
7
|
Jeweler::Tasks.new do |s|
|
3
8
|
s.name = 'gnuplot'
|
4
9
|
s.description = s.summary = "Utility library to aid in interacting with gnuplot"
|
5
|
-
s.version = "2.3.
|
10
|
+
s.version = "2.3.6"
|
6
11
|
s.autorequire = 'gnuplot.rb'
|
7
12
|
s.email = "rogerpack2005@gmail.com"
|
8
13
|
s.homepage = "http://github.com/rdp/ruby_gnuplot/tree/master"
|
metadata
CHANGED
@@ -1,34 +1,25 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gnuplot
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 2
|
7
|
-
- 3
|
8
|
-
- 5
|
9
|
-
version: 2.3.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.3.6
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
7
|
authors: []
|
12
|
-
|
13
8
|
autorequire: gnuplot.rb
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-01-29 00:00:00 -07:00
|
11
|
+
date: 2011-03-03 00:00:00.000000000 -07:00
|
18
12
|
default_executable:
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description: Utility library to aid in interacting with gnuplot
|
22
15
|
email: rogerpack2005@gmail.com
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
|
-
extra_rdoc_files:
|
18
|
+
extra_rdoc_files:
|
28
19
|
- ChangeLog
|
29
20
|
- LICENSE.txt
|
30
21
|
- README.textile
|
31
|
-
files:
|
22
|
+
files:
|
32
23
|
- AUTHORS.txt
|
33
24
|
- ChangeLog
|
34
25
|
- LICENSE.txt
|
@@ -48,36 +39,29 @@ files:
|
|
48
39
|
has_rdoc: true
|
49
40
|
homepage: http://github.com/rdp/ruby_gnuplot/tree/master
|
50
41
|
licenses: []
|
51
|
-
|
52
42
|
post_install_message:
|
53
43
|
rdoc_options: []
|
54
|
-
|
55
|
-
require_paths:
|
44
|
+
require_paths:
|
56
45
|
- lib
|
57
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
47
|
none: false
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
|
63
|
-
|
64
|
-
version: "0"
|
65
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ! '>='
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
53
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
- 0
|
72
|
-
version: "0"
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
73
58
|
requirements: []
|
74
|
-
|
75
59
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.
|
60
|
+
rubygems_version: 1.6.0
|
77
61
|
signing_key:
|
78
62
|
specification_version: 3
|
79
63
|
summary: Utility library to aid in interacting with gnuplot
|
80
|
-
test_files:
|
64
|
+
test_files:
|
81
65
|
- examples/discrete_points.rb
|
82
66
|
- examples/multiple_data_sets.rb
|
83
67
|
- examples/output_image_file.rb
|