bplot 0.0.2b → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/ChangeLog +0 -2
  2. data/Tutorial +6 -12
  3. data/lib/bplot.rb +0 -10
  4. metadata +4 -4
data/ChangeLog CHANGED
@@ -20,8 +20,6 @@
20
20
  * Replaced the "replot" command with "refresh" which is more appropiate
21
21
  for plotting data streams like BPLot does.
22
22
 
23
- * New command: show
24
-
25
23
  === Version 0.0.1
26
24
 
27
25
  * Initial release of BPlot using Gnuplot as a backend plotting engine.
data/Tutorial CHANGED
@@ -32,8 +32,8 @@ a dependency. That said, plotting is likely to be easier with NMatrix.
32
32
 
33
33
  == Getting Started
34
34
 
35
- After installation, start the Ruby shell with the command "irb" (if you have
36
- Ruby version 1.8, type "irb -rubygems"). Then type the following:
35
+ After BPlot is properly installed, create a new program and insert the
36
+ following:
37
37
 
38
38
  require 'bplot'
39
39
 
@@ -80,13 +80,7 @@ You can use "set" to set many global options. For example:
80
80
  b.set('title "A title for the whole plot"')
81
81
 
82
82
  As mentioned earlier, these settings will not be visible until you issue
83
- another plotting command. However, you can find out their values using
84
- the *show* command:
85
-
86
- b.show('terminal')
87
- b.show('xrange')
88
- b.show('title')
89
-
83
+ another plotting command.
90
84
 
91
85
  === Refresh
92
86
 
@@ -118,7 +112,7 @@ options:
118
112
  b.plot(x, y, :title => "My Data", :color => "#33aa55")
119
113
 
120
114
  The colour can be specified as an RGB hex string ("#33aa55") or any colour
121
- name that Gnuplot recognizes. To see a full list type *b.show('colornames')*,
115
+ name that Gnuplot recognizes. To see a full list type `show colornames`,
122
116
  but some examples include:
123
117
 
124
118
  red dark-red light-red black white
@@ -135,12 +129,12 @@ but some examples include:
135
129
  coral light-coral grey100 gray100
136
130
 
137
131
  You can instruct BPlot to connect points with lines using the +:lines+
138
- option, and you can configure the point style with the +:points+ option.
132
+ option, and you coan configure the point style with the +:points+ option.
139
133
  Both parameters take a style string that specifies the line-width/point-size
140
134
  and the line-type/point-type separated by a semicolon:
141
135
 
142
136
  b.plot(x, y, :lines => "2;dashed", :points => "2;open-circle")
143
- b.plot(x, y, :lines => "1;dots", :points => "1.5;filled-square")
137
+ b.plot(x, y, :lines => "1;points", :points => "1.5;filled-square")
144
138
 
145
139
  You can leave either option blank. For example, `:lines => ";dashed"` defines
146
140
  a dashed line of the default thickness ("1"), while `:lines => "2;"` defines
data/lib/bplot.rb CHANGED
@@ -111,16 +111,6 @@ class BPlot
111
111
  @pipe.puts "unset #{str}"
112
112
  end
113
113
 
114
- # === Show
115
- #
116
- # The `set` command can be used to set *lots* of options. No screen is
117
- # drawn, however, until a plotting command is given. The *show* command
118
- # shows their settings; show('all') shows all the settings.
119
- #
120
- def show(str)
121
- @pipe.puts "show #{str}"
122
- end
123
-
124
114
  #
125
115
  # === Refresh
126
116
  #
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bplot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2b
5
- prerelease: 5
4
+ version: 0.0.2
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Carrera
@@ -54,9 +54,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
- - - ! '>'
57
+ - - ! '>='
58
58
  - !ruby/object:Gem::Version
59
- version: 1.3.1
59
+ version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
62
  rubygems_version: 1.8.11