rubyplot 0.0.1 → 0.1.pre.a1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +133 -0
  5. data/.travis.yml +18 -0
  6. data/CHANGELOG.md +9 -0
  7. data/CONTRIBUTING.md +48 -0
  8. data/Gemfile +6 -0
  9. data/README.md +47 -0
  10. data/Rakefile +32 -0
  11. data/ext/grruby/extconf.rb +6 -0
  12. data/ext/grruby/grruby.c +1163 -0
  13. data/ext/grruby/grruby.h +135 -0
  14. data/lib/rubyplot.rb +30 -1
  15. data/lib/rubyplot/artist.rb +13 -0
  16. data/lib/rubyplot/artist/axes.rb +328 -0
  17. data/lib/rubyplot/artist/axis.rb +3 -0
  18. data/lib/rubyplot/artist/axis/base.rb +34 -0
  19. data/lib/rubyplot/artist/axis/x_axis.rb +35 -0
  20. data/lib/rubyplot/artist/axis/y_axis.rb +40 -0
  21. data/lib/rubyplot/artist/base.rb +14 -0
  22. data/lib/rubyplot/artist/circle.rb +28 -0
  23. data/lib/rubyplot/artist/figure.rb +90 -0
  24. data/lib/rubyplot/artist/legend.rb +59 -0
  25. data/lib/rubyplot/artist/legend_box.rb +89 -0
  26. data/lib/rubyplot/artist/line2d.rb +24 -0
  27. data/lib/rubyplot/artist/plot.rb +9 -0
  28. data/lib/rubyplot/artist/plot/area.rb +38 -0
  29. data/lib/rubyplot/artist/plot/bar.rb +69 -0
  30. data/lib/rubyplot/artist/plot/bar_type.rb +31 -0
  31. data/lib/rubyplot/artist/plot/base.rb +67 -0
  32. data/lib/rubyplot/artist/plot/bubble.rb +41 -0
  33. data/lib/rubyplot/artist/plot/line.rb +61 -0
  34. data/lib/rubyplot/artist/plot/multi_bars.rb +75 -0
  35. data/lib/rubyplot/artist/plot/multi_stacked_bar.rb +78 -0
  36. data/lib/rubyplot/artist/plot/scatter.rb +29 -0
  37. data/lib/rubyplot/artist/plot/stacked_bar.rb +69 -0
  38. data/lib/rubyplot/artist/polygon.rb +21 -0
  39. data/lib/rubyplot/artist/rectangle.rb +39 -0
  40. data/lib/rubyplot/artist/text.rb +49 -0
  41. data/lib/rubyplot/artist/tick.rb +3 -0
  42. data/lib/rubyplot/artist/tick/base.rb +35 -0
  43. data/lib/rubyplot/artist/tick/x_tick.rb +25 -0
  44. data/lib/rubyplot/artist/tick/y_tick.rb +24 -0
  45. data/lib/rubyplot/backend.rb +2 -0
  46. data/lib/rubyplot/backend/gr_wrapper.rb +7 -0
  47. data/lib/rubyplot/backend/magick_wrapper.rb +141 -0
  48. data/lib/rubyplot/color.rb +992 -0
  49. data/lib/rubyplot/figure.rb +2 -0
  50. data/lib/rubyplot/spi.rb +8 -0
  51. data/lib/rubyplot/subplot.rb +4 -0
  52. data/lib/rubyplot/themes.rb +47 -0
  53. data/lib/rubyplot/utils.rb +14 -0
  54. data/lib/rubyplot/version.rb +1 -1
  55. data/rubyplot.gemspec +10 -0
  56. data/spec/axes_spec.rb +477 -0
  57. data/spec/figure_spec.rb +12 -0
  58. data/spec/spec_helper.rb +62 -0
  59. data/spec/spi/multi_plot_graph_spec.rb +33 -0
  60. data/spec/spi/single_plot_graph_spec.rb +227 -0
  61. data/spec/spi/subplots_spec.rb +55 -0
  62. metadata +166 -8
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rubyplot::Figure do
4
+ context "#add_subplot" do
5
+ it "creates a singular subplot inside the Figure" do
6
+ fig = Rubyplot::Figure.new
7
+ axes = fig.add_subplot 0,0
8
+
9
+ expect(axes).to be_a(Rubyplot::Axes)
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,62 @@
1
+ require 'fileutils'
2
+ require 'pry'
3
+ require 'rubyplot'
4
+ require 'rspec'
5
+ require 'rmagick'
6
+
7
+ SPEC_ROOT = File.dirname(__FILE__) + "/"
8
+ TEMP_DIR = SPEC_ROOT + "temp/"
9
+ FIXTURES_DIR = SPEC_ROOT + "fixtures/"
10
+
11
+ Rubyplot.set_backend :magick
12
+
13
+ RSpec::Matchers.define :eq_image do |expected_image, delta|
14
+ compared_delta = 0
15
+ match do |actual_image|
16
+ compared_delta = compare_with_reference(actual_image, expected_image)
17
+ compared_delta < delta
18
+ end
19
+
20
+ failure_message do |actual_image|
21
+ "expected that delta be < #{delta} not #{compared_delta}
22
+ comparison between:
23
+ #{actual_image} | #{expected_image}\n"
24
+ end
25
+ end
26
+
27
+ def compare_with_reference(test_image, reference_image)
28
+ image1 = Magick::Image.read(test_image).first
29
+ image2 = Magick::Image.read(reference_image).first
30
+ diff = 0
31
+ pixel_array_1 = image1.export_pixels
32
+ pixel_array_2 = image2.export_pixels
33
+ pixel_array_1.size.times do |i|
34
+ diff += ( (pixel_array_1[i] - pixel_array_2[i]).abs / 3 )**2
35
+ end
36
+
37
+ Math.sqrt(diff / pixel_array_1.size)
38
+ end
39
+
40
+ RSpec.configure do |config|
41
+ config.before(:suite) do
42
+ FileUtils.mkdir_p TEMP_DIR
43
+ FileUtils.mkdir_p FIXTURES_DIR
44
+ end
45
+
46
+ config.after(:example) do |example|
47
+ if @figure.is_a?(Rubyplot::Artist::Figure)
48
+ plot_name = example.description.split.join("_") + ".png"
49
+ base_image = TEMP_DIR + plot_name
50
+ other_image = FIXTURES_DIR + plot_name
51
+ @figure.write(other_image)
52
+ @figure.write(base_image)
53
+
54
+ expect(base_image).to eq_image(other_image, 10)
55
+ end
56
+ end
57
+
58
+ config.after(:suite) do |example|
59
+ FileUtils.rm_rf SPEC_ROOT + TEMP_DIR
60
+ FileUtils.rm_rf SPEC_ROOT + FIXTURES_DIR
61
+ end
62
+ end
@@ -0,0 +1,33 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rubyplot::SPI do
4
+ before do
5
+ @x1 = [-10, 0, 5, 28]
6
+ @y1 = [1, 2, 3, 4]
7
+ @x2 = [2, 4, 16]
8
+ @y2 = [10, 20, -40]
9
+ end
10
+
11
+ after do
12
+ File.delete 'spec/reference_images/file_name.bmp'
13
+ end
14
+
15
+ context '#line! #scatter!' do
16
+ before do
17
+ @x1 = [-10, 0, 5, 28]
18
+ @y1 = [1, 2, 3, 4]
19
+ @x2 = [2, 4, 16]
20
+ @y2 = [10, 20, -40]
21
+ end
22
+ skip 'creates a line and scatter graph' do
23
+ a = Rubyplot::SPI.new
24
+ a.title = 'My cool graph'
25
+ a.line! @x1, @y1
26
+ a.scatter! @x2, @y2
27
+ a.save 'spec/reference_images/file_name.bmp'
28
+
29
+ expect(compare_with_reference?('file_name.bmp', 'multi_plot_graph/' \
30
+ 'line_scatter_graph.bmp',10)).to eq(true)
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,227 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rubyplot::SPI do
4
+ before do
5
+ @x1 = [1, 2, 3, 4, 5]
6
+ @y1 = [10, 20, 30, 40, 50]
7
+ @values = [0, 24, -12, 48]
8
+ @freqwise = [1, 2, 5, 6, 5, 9, 9, 1, 2, 9, 2, 6, 5]
9
+ @portfolio_names = ['Apples', 'Oranges', 'Bananas']
10
+ @portfolio = [20000, 8000, 34000]
11
+ end
12
+
13
+ after do
14
+ File.delete 'spec/reference_images/file_name.bmp'
15
+ end
16
+
17
+ context '#line' do
18
+ skip 'creates a simple line graph' do
19
+ a = Rubyplot::SPI.new
20
+ a.line! @x1, @y1
21
+ a.save 'spec/reference_images/file_name.bmp'
22
+
23
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
24
+ 'line_graph.bmp', 10)).to eq(true)
25
+ end
26
+
27
+ skip 'creates a line graph with points marked' do
28
+ a = Rubyplot::SPI.new
29
+ a.line! @x1, @y1, marker_size: 1
30
+ a.save 'spec/reference_images/file_name.bmp'
31
+
32
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
33
+ 'line_marker_graph.bmp', 10)).to eq(true)
34
+ end
35
+
36
+ skip 'creates a red dashed line graph with points marked' do
37
+ a = Rubyplot::SPI.new
38
+ a.line! @x1, @y1, line_color: :red, line_type: :dashed
39
+ a.save 'spec/reference_images/file_name.bmp'
40
+
41
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
42
+ 'dash_line_marker_graph.bmp',
43
+ 10)).to eq(true)
44
+ end
45
+ end
46
+
47
+ context '#scatter!' do
48
+ skip 'creates a simple scatter graph' do
49
+ a = Rubyplot::SPI.new
50
+ a.scatter! do |p|
51
+ p.data @x1, @y1
52
+ end
53
+ a.save 'spec/reference_images/file_name.bmp'
54
+
55
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
56
+ 'scatter_graph.bmp', 10)).to eq(true)
57
+ end
58
+
59
+ skip 'creates a green cross scatter graph' do
60
+ a = Rubyplot::SPI.new
61
+ a.scatter! @x1, @y1, marker_color: :green, marker_size: 2,
62
+ marker_type: :diagonal_cross
63
+ a.save 'spec/reference_images/file_name.bmp'
64
+
65
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
66
+ 'scatter_cross_graph.bmp', 10)).to eq(true)
67
+ end
68
+ end
69
+
70
+ context '#bar' do
71
+ skip 'creates a simple bar graph' do
72
+ a = Rubyplot::SPI.new
73
+ a.bar! @values
74
+ a.save 'spec/reference_images/file_name.bmp'
75
+
76
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
77
+ 'bar_graph.bmp', 10)).to eq(true)
78
+ end
79
+
80
+ skip 'creates a bar graph with red color bars' do
81
+ a = Rubyplot::SPI.new
82
+ a.bar! @values, bar_color: :red
83
+ a.save 'spec/reference_images/file_name.bmp'
84
+
85
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
86
+ 'red_bar_graph.bmp', 10)).to eq(true)
87
+ end
88
+
89
+ skip 'creates a bar graph with orange color bars with spaces' do
90
+ a = Rubyplot::SPI.new
91
+ a.bar! @values, bar_color: :orange, bar_gap: 1
92
+ a.save 'spec/reference_images/file_name.bmp'
93
+
94
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
95
+ 'orange_spaced_bar_graph.bmp',
96
+ 10)).to eq(true)
97
+ end
98
+ end
99
+
100
+ context '#stacked_bar!' do
101
+ before do
102
+ @bars_data = [[12, 4, 53, 24],
103
+ [4, 34, 8, 25],
104
+ [20, 9, 31, 2],
105
+ [56, 12, 84, 30]]
106
+ end
107
+
108
+ skip 'creates a stacked bar graph' do
109
+ a = Rubyplot::SPI.new
110
+ a.stacked_bar! @bars_data
111
+ a.save 'spec/reference_images/file_name.bmp'
112
+
113
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
114
+ 'stacked_bar_graph.bmp',
115
+ 10)).to eq(true)
116
+ end
117
+
118
+ skip 'creates a stacked bar graph with user defined colors' do
119
+ a = Rubyplot::SPI.new
120
+ a.stacked_bar! @bars_data,bar_colors: [:black, :red, :green, :blue]
121
+ a.save 'spec/reference_images/file_name.bmp'
122
+
123
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
124
+ 'user_color_stacked_bar_graph.bmp',
125
+ 10)).to eq(true)
126
+ end
127
+ end
128
+
129
+ context '#stacked_bar_z!' do
130
+ before do
131
+ @bars_data = [[12, 4, 53, 24],
132
+ [4, 34, 8, 25],
133
+ [20, 9, 31, 2],
134
+ [56, 12, 84, 30]]
135
+ end
136
+
137
+ skip 'creates a stacked bar Z graph' do
138
+ a = Rubyplot::SPI.new
139
+ a.stacked_bar_z! @bars_data
140
+ a.save 'spec/reference_images/file_name.bmp'
141
+
142
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
143
+ 'stacked_bar_z_graph.bmp',
144
+ 10)).to eq(true)
145
+ end
146
+
147
+ skip 'creates a stacked bar Z graph with user defined colors' do
148
+ a = Rubyplot::SPI.new
149
+ a.stacked_bar! @bars_data,bar_colors: [:black, :red, :green, :blue]
150
+ a.save 'spec/reference_images/file_name.bmp'
151
+
152
+ expect(compare_wskiph_reference?('file_name.bmp', 'single_plot_graph/' \
153
+ 'user_color_stacked_bar_z_graph.bmp',
154
+ 10)).to eq(true)
155
+ end
156
+ end
157
+
158
+ context '#line_plot!' do
159
+ skip 'creates a simple line plot' do
160
+ a = Rubyplot::SPI.new
161
+ a.line_plot_z! @freqwise
162
+ a.save 'spec/reference_images/file_name.bmp'
163
+
164
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
165
+ 'line_plot.bmp', 10)).to eq(true)
166
+ end
167
+
168
+ skip 'creates a line plot with red markers' do
169
+ a = Rubyplot::SPI.new
170
+ a.line_plot! @values, marker_color: :red, marker_size: 2
171
+ a.save 'spec/reference_images/file_name.bmp'
172
+
173
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
174
+ 'red_line_plot.bmp', 10)).to eq(true)
175
+ end
176
+
177
+ skip 'creates a line plot with green solid bowtie markers' do
178
+ a = Rubyplot::SPI.new
179
+ a.line_plot! @values, marker_color: :green, marker_type: :solid_bowtie
180
+ a.save 'spec/reference_images/file_name.bmp'
181
+
182
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
183
+ 'green _bowtie_line_plot.bmp',
184
+ 10)).to eq(true)
185
+ end
186
+ end
187
+
188
+ context '#pie!' do
189
+ skip 'creates a simple pie chart' do
190
+ a = Rubyplot::SPI.new
191
+ a.pie! @portfolio, @portfolio_names
192
+ a.save 'spec/reference_images/file_name.bmp'
193
+
194
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
195
+ 'pie_chart.bmp', 10)).to eq(true)
196
+ end
197
+ end
198
+
199
+ context '#candlestick!' do
200
+ before do
201
+ @open = [10, 15, 24, 18]
202
+ @high = [20, 25, 30, 18]
203
+ @low = [5, 13, 15, 3]
204
+ @close = [15, 24, 18, 4]
205
+ # incoporate date ??
206
+ end
207
+ skip 'creates a simple candle plot' do
208
+ a = Rubyplot::SPI.new
209
+ a.candlestick! @open, @high, @low, @close
210
+ a.save 'spec/reference_images/file_name.bmp'
211
+
212
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
213
+ 'candlestick_plot.bmp',
214
+ 10)).to eq(true)
215
+ end
216
+
217
+ skip 'creates a candle plot with blue positive and black negative color' do
218
+ a = Rubyplot::SPI.new
219
+ a.candlestick! @open, @high, @low, @close, up_color: :blue, down_color: :black
220
+ a.save 'spec/reference_images/file_name.bmp'
221
+
222
+ expect(compare_with_reference?('file_name.bmp', 'single_plot_graph/' \
223
+ 'candlestick_plot.bmp',
224
+ 10)).to eq(true)
225
+ end
226
+ end
227
+ end
@@ -0,0 +1,55 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rubyplot::SPI do
4
+ before do
5
+ @x1 = [1, 2, 3, 4, 5]
6
+ @y1 = [10, 20, 30, 40, 50]
7
+ @x2 = [2, 4, 16]
8
+ @y2 = [10, 20, -40]
9
+ @values = [0, 24, -12, 48]
10
+ @bars_data = [[12, 4, 53, 24],
11
+ [4, 34, 8, 25],
12
+ [20, 9, 31, 2],
13
+ [56, 12, 84, 30]]
14
+ @open = [10, 15, 24, 18]
15
+ @high = [20, 25, 30, 18]
16
+ @low = [5, 13, 15, 3]
17
+ @close = [15, 24, 18, 4]
18
+ end
19
+ after do
20
+ File.delete 'spec/reference_images/file_name.bmp'
21
+ end
22
+
23
+ context '#subplot!' do
24
+ skip 'creates a SPI with 2 Subplots stacked vertically' do
25
+ a = Rubyplot::SPI.new
26
+ a.subplot!(2, 1, 1)
27
+ a.line! @x1, @y1
28
+ a.subplot!(2, 1, 2)
29
+ a.scatter! @x2, @y2
30
+ a.save 'spec/reference_images/file_name.bmp'
31
+
32
+ expect(compare_with_reference?('file_name.bmp', 'subplots/' \
33
+ 'two_vertical.bmp', 10)).to eq(true)
34
+ end
35
+
36
+ skip 'creates a 2x2 subplots with multiple plots in a figure' do
37
+ a = Rubyplot::SPI.new
38
+ a.subplot!(2, 2, 1)
39
+ a.line! @x1, @y1, marker_size: 1
40
+ a.scatter! @x2, @y2
41
+ a.subplot!(2, 2, 2)
42
+ a.scatter! @x2, @y2
43
+ a.subplot!(2, 2, 3)
44
+ a.line! @x1, @y1, line_color: :red, line_type: :dashed
45
+ a.subplot!(2, 2, 4)
46
+ a.candlestick! @open, @high, @low, @close, up_color: :blue, down_color: :black
47
+ a.subplot!(2, 2, 3)
48
+ a.bar! @values, bar_color: :orange, bar_gap: 1
49
+ a.save 'spec/reference_images/file_name.bmp'
50
+
51
+ expect(compare_with_reference?('file_name.bmp', 'subplots/' \
52
+ 'two_by_two_grid.bmp', 10)).to eq(true)
53
+ end
54
+ end
55
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyplot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.pre.a1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arafat Khan
@@ -12,25 +12,177 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-05-14 00:00:00.000000000 Z
16
- dependencies: []
15
+ date: 2019-01-10 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: bundler
19
+ requirement: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
24
+ type: :development
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: rake
33
+ requirement: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ - !ruby/object:Gem::Dependency
46
+ name: rake-compiler
47
+ requirement: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ type: :development
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ - !ruby/object:Gem::Dependency
60
+ name: rspec
61
+ requirement: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ - !ruby/object:Gem::Dependency
74
+ name: pry
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ - !ruby/object:Gem::Dependency
88
+ name: rubocop
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ - !ruby/object:Gem::Dependency
102
+ name: rmagick
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: 2.13.4
108
+ type: :runtime
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 2.13.4
17
115
  description: 'An advanced plotting library for Ruby.
18
116
 
19
117
  '
20
118
  email:
21
119
  - sameer.deshmukh93@gmail.com
22
120
  executables: []
23
- extensions: []
121
+ extensions:
122
+ - ext/grruby/extconf.rb
24
123
  extra_rdoc_files: []
25
124
  files:
26
125
  - ".gitignore"
126
+ - ".rspec"
127
+ - ".rubocop.yml"
128
+ - ".travis.yml"
129
+ - CHANGELOG.md
130
+ - CONTRIBUTING.md
27
131
  - Gemfile
28
132
  - LICENSE
29
133
  - README.md
30
134
  - Rakefile
135
+ - ext/grruby/extconf.rb
136
+ - ext/grruby/grruby.c
137
+ - ext/grruby/grruby.h
31
138
  - lib/rubyplot.rb
139
+ - lib/rubyplot/artist.rb
140
+ - lib/rubyplot/artist/axes.rb
141
+ - lib/rubyplot/artist/axis.rb
142
+ - lib/rubyplot/artist/axis/base.rb
143
+ - lib/rubyplot/artist/axis/x_axis.rb
144
+ - lib/rubyplot/artist/axis/y_axis.rb
145
+ - lib/rubyplot/artist/base.rb
146
+ - lib/rubyplot/artist/circle.rb
147
+ - lib/rubyplot/artist/figure.rb
148
+ - lib/rubyplot/artist/legend.rb
149
+ - lib/rubyplot/artist/legend_box.rb
150
+ - lib/rubyplot/artist/line2d.rb
151
+ - lib/rubyplot/artist/plot.rb
152
+ - lib/rubyplot/artist/plot/area.rb
153
+ - lib/rubyplot/artist/plot/bar.rb
154
+ - lib/rubyplot/artist/plot/bar_type.rb
155
+ - lib/rubyplot/artist/plot/base.rb
156
+ - lib/rubyplot/artist/plot/bubble.rb
157
+ - lib/rubyplot/artist/plot/line.rb
158
+ - lib/rubyplot/artist/plot/multi_bars.rb
159
+ - lib/rubyplot/artist/plot/multi_stacked_bar.rb
160
+ - lib/rubyplot/artist/plot/scatter.rb
161
+ - lib/rubyplot/artist/plot/stacked_bar.rb
162
+ - lib/rubyplot/artist/polygon.rb
163
+ - lib/rubyplot/artist/rectangle.rb
164
+ - lib/rubyplot/artist/text.rb
165
+ - lib/rubyplot/artist/tick.rb
166
+ - lib/rubyplot/artist/tick/base.rb
167
+ - lib/rubyplot/artist/tick/x_tick.rb
168
+ - lib/rubyplot/artist/tick/y_tick.rb
169
+ - lib/rubyplot/backend.rb
170
+ - lib/rubyplot/backend/gr_wrapper.rb
171
+ - lib/rubyplot/backend/magick_wrapper.rb
172
+ - lib/rubyplot/color.rb
173
+ - lib/rubyplot/figure.rb
174
+ - lib/rubyplot/spi.rb
175
+ - lib/rubyplot/subplot.rb
176
+ - lib/rubyplot/themes.rb
177
+ - lib/rubyplot/utils.rb
32
178
  - lib/rubyplot/version.rb
33
179
  - rubyplot.gemspec
180
+ - spec/axes_spec.rb
181
+ - spec/figure_spec.rb
182
+ - spec/spec_helper.rb
183
+ - spec/spi/multi_plot_graph_spec.rb
184
+ - spec/spi/single_plot_graph_spec.rb
185
+ - spec/spi/subplots_spec.rb
34
186
  homepage: http://github.com/sciruby/rubyplot
35
187
  licenses:
36
188
  - BSD-3
@@ -46,13 +198,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
46
198
  version: '0'
47
199
  required_rubygems_version: !ruby/object:Gem::Requirement
48
200
  requirements:
49
- - - ">="
201
+ - - ">"
50
202
  - !ruby/object:Gem::Version
51
- version: '0'
203
+ version: 1.3.1
52
204
  requirements: []
53
205
  rubyforge_project:
54
- rubygems_version: 2.7.6
206
+ rubygems_version: 2.6.14
55
207
  signing_key:
56
208
  specification_version: 4
57
209
  summary: An advaced plotting library for Ruby.
58
- test_files: []
210
+ test_files:
211
+ - spec/axes_spec.rb
212
+ - spec/figure_spec.rb
213
+ - spec/spec_helper.rb
214
+ - spec/spi/multi_plot_graph_spec.rb
215
+ - spec/spi/single_plot_graph_spec.rb
216
+ - spec/spi/subplots_spec.rb