charty 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +56 -23
  3. data/.github/workflows/nmatrix.yml +67 -0
  4. data/.github/workflows/pycall.yml +86 -0
  5. data/Gemfile +18 -0
  6. data/README.md +123 -4
  7. data/Rakefile +4 -5
  8. data/charty.gemspec +1 -3
  9. data/examples/sample_images/hist_gruff.png +0 -0
  10. data/images/penguins_body_mass_g_flipper_length_mm_scatter_plot.png +0 -0
  11. data/images/penguins_body_mass_g_flipper_length_mm_species_scatter_plot.png +0 -0
  12. data/images/penguins_body_mass_g_flipper_length_mm_species_sex_scatter_plot.png +0 -0
  13. data/images/penguins_species_body_mass_g_bar_plot_h.png +0 -0
  14. data/images/penguins_species_body_mass_g_bar_plot_v.png +0 -0
  15. data/images/penguins_species_body_mass_g_box_plot_h.png +0 -0
  16. data/images/penguins_species_body_mass_g_box_plot_v.png +0 -0
  17. data/images/penguins_species_body_mass_g_sex_bar_plot_v.png +0 -0
  18. data/images/penguins_species_body_mass_g_sex_box_plot_v.png +0 -0
  19. data/lib/charty.rb +4 -0
  20. data/lib/charty/backends/gruff.rb +13 -2
  21. data/lib/charty/backends/plotly.rb +322 -20
  22. data/lib/charty/backends/pyplot.rb +416 -64
  23. data/lib/charty/index.rb +213 -0
  24. data/lib/charty/linspace.rb +1 -1
  25. data/lib/charty/missing_value_support.rb +14 -0
  26. data/lib/charty/plot_methods.rb +173 -8
  27. data/lib/charty/plotters.rb +7 -0
  28. data/lib/charty/plotters/abstract_plotter.rb +87 -12
  29. data/lib/charty/plotters/bar_plotter.rb +200 -3
  30. data/lib/charty/plotters/box_plotter.rb +75 -7
  31. data/lib/charty/plotters/categorical_plotter.rb +272 -40
  32. data/lib/charty/plotters/count_plotter.rb +7 -0
  33. data/lib/charty/plotters/estimation_support.rb +84 -0
  34. data/lib/charty/plotters/random_support.rb +25 -0
  35. data/lib/charty/plotters/relational_plotter.rb +518 -0
  36. data/lib/charty/plotters/scatter_plotter.rb +115 -0
  37. data/lib/charty/plotters/vector_plotter.rb +6 -0
  38. data/lib/charty/statistics.rb +87 -2
  39. data/lib/charty/table.rb +50 -15
  40. data/lib/charty/table_adapters.rb +2 -0
  41. data/lib/charty/table_adapters/active_record_adapter.rb +17 -9
  42. data/lib/charty/table_adapters/base_adapter.rb +69 -0
  43. data/lib/charty/table_adapters/daru_adapter.rb +37 -3
  44. data/lib/charty/table_adapters/datasets_adapter.rb +6 -2
  45. data/lib/charty/table_adapters/hash_adapter.rb +130 -16
  46. data/lib/charty/table_adapters/narray_adapter.rb +25 -6
  47. data/lib/charty/table_adapters/nmatrix_adapter.rb +15 -5
  48. data/lib/charty/table_adapters/pandas_adapter.rb +81 -0
  49. data/lib/charty/vector.rb +69 -0
  50. data/lib/charty/vector_adapters.rb +183 -0
  51. data/lib/charty/vector_adapters/array_adapter.rb +109 -0
  52. data/lib/charty/vector_adapters/daru_adapter.rb +171 -0
  53. data/lib/charty/vector_adapters/narray_adapter.rb +187 -0
  54. data/lib/charty/vector_adapters/nmatrix_adapter.rb +37 -0
  55. data/lib/charty/vector_adapters/numpy_adapter.rb +168 -0
  56. data/lib/charty/vector_adapters/pandas_adapter.rb +200 -0
  57. data/lib/charty/version.rb +1 -1
  58. metadata +33 -45
@@ -1,5 +1,5 @@
1
1
  module Charty
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
 
4
4
  module Version
5
5
  numbers, TAG = VERSION.split("-")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - youchan
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-02-05 00:00:00.000000000 Z
13
+ date: 2021-05-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: red-colors
@@ -82,34 +82,6 @@ dependencies:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
- - !ruby/object:Gem::Dependency
86
- name: numo-narray
87
- requirement: !ruby/object:Gem::Requirement
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: '0'
92
- type: :development
93
- prerelease: false
94
- version_requirements: !ruby/object:Gem::Requirement
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- version: '0'
99
- - !ruby/object:Gem::Dependency
100
- name: nmatrix
101
- requirement: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- version: '0'
106
- type: :development
107
- prerelease: false
108
- version_requirements: !ruby/object:Gem::Requirement
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: '0'
113
85
  - !ruby/object:Gem::Dependency
114
86
  name: red-datasets
115
87
  requirement: !ruby/object:Gem::Requirement
@@ -166,20 +138,6 @@ dependencies:
166
138
  - - ">="
167
139
  - !ruby/object:Gem::Version
168
140
  version: '0'
169
- - !ruby/object:Gem::Dependency
170
- name: matplotlib
171
- requirement: !ruby/object:Gem::Requirement
172
- requirements:
173
- - - ">="
174
- - !ruby/object:Gem::Version
175
- version: '0'
176
- type: :development
177
- prerelease: false
178
- version_requirements: !ruby/object:Gem::Requirement
179
- requirements:
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: '0'
183
141
  description: Visualizing your data in a simple way.
184
142
  email:
185
143
  - youchan01@gmail.com
@@ -190,6 +148,8 @@ extensions: []
190
148
  extra_rdoc_files: []
191
149
  files:
192
150
  - ".github/workflows/ci.yml"
151
+ - ".github/workflows/nmatrix.yml"
152
+ - ".github/workflows/pycall.yml"
193
153
  - ".gitignore"
194
154
  - Dockerfile.dev
195
155
  - Gemfile
@@ -230,6 +190,7 @@ files:
230
190
  - examples/sample_images/curve_with_function_pyplot.png
231
191
  - examples/sample_images/curve_with_function_rubyplot.png
232
192
  - examples/sample_images/error_bar_pyplot.png
193
+ - examples/sample_images/hist_gruff.png
233
194
  - examples/sample_images/hist_pyplot.png
234
195
  - examples/sample_images/scatter_bokeh.html
235
196
  - examples/sample_images/scatter_gruff.png
@@ -240,6 +201,15 @@ files:
240
201
  - examples/sample_pyplot.ipynb
241
202
  - examples/sample_rubyplot.ipynb
242
203
  - images/design_concept.png
204
+ - images/penguins_body_mass_g_flipper_length_mm_scatter_plot.png
205
+ - images/penguins_body_mass_g_flipper_length_mm_species_scatter_plot.png
206
+ - images/penguins_body_mass_g_flipper_length_mm_species_sex_scatter_plot.png
207
+ - images/penguins_species_body_mass_g_bar_plot_h.png
208
+ - images/penguins_species_body_mass_g_bar_plot_v.png
209
+ - images/penguins_species_body_mass_g_box_plot_h.png
210
+ - images/penguins_species_body_mass_g_box_plot_v.png
211
+ - images/penguins_species_body_mass_g_sex_bar_plot_v.png
212
+ - images/penguins_species_body_mass_g_sex_box_plot_v.png
243
213
  - lib/charty.rb
244
214
  - lib/charty/backend_methods.rb
245
215
  - lib/charty/backends.rb
@@ -250,8 +220,10 @@ files:
250
220
  - lib/charty/backends/pyplot.rb
251
221
  - lib/charty/backends/rubyplot.rb
252
222
  - lib/charty/backends/unicode_plot.rb
223
+ - lib/charty/index.rb
253
224
  - lib/charty/layout.rb
254
225
  - lib/charty/linspace.rb
226
+ - lib/charty/missing_value_support.rb
255
227
  - lib/charty/plot_methods.rb
256
228
  - lib/charty/plotter.rb
257
229
  - lib/charty/plotters.rb
@@ -259,15 +231,31 @@ files:
259
231
  - lib/charty/plotters/bar_plotter.rb
260
232
  - lib/charty/plotters/box_plotter.rb
261
233
  - lib/charty/plotters/categorical_plotter.rb
234
+ - lib/charty/plotters/count_plotter.rb
235
+ - lib/charty/plotters/estimation_support.rb
236
+ - lib/charty/plotters/random_support.rb
237
+ - lib/charty/plotters/relational_plotter.rb
238
+ - lib/charty/plotters/scatter_plotter.rb
239
+ - lib/charty/plotters/vector_plotter.rb
262
240
  - lib/charty/statistics.rb
263
241
  - lib/charty/table.rb
264
242
  - lib/charty/table_adapters.rb
265
243
  - lib/charty/table_adapters/active_record_adapter.rb
244
+ - lib/charty/table_adapters/base_adapter.rb
266
245
  - lib/charty/table_adapters/daru_adapter.rb
267
246
  - lib/charty/table_adapters/datasets_adapter.rb
268
247
  - lib/charty/table_adapters/hash_adapter.rb
269
248
  - lib/charty/table_adapters/narray_adapter.rb
270
249
  - lib/charty/table_adapters/nmatrix_adapter.rb
250
+ - lib/charty/table_adapters/pandas_adapter.rb
251
+ - lib/charty/vector.rb
252
+ - lib/charty/vector_adapters.rb
253
+ - lib/charty/vector_adapters/array_adapter.rb
254
+ - lib/charty/vector_adapters/daru_adapter.rb
255
+ - lib/charty/vector_adapters/narray_adapter.rb
256
+ - lib/charty/vector_adapters/nmatrix_adapter.rb
257
+ - lib/charty/vector_adapters/numpy_adapter.rb
258
+ - lib/charty/vector_adapters/pandas_adapter.rb
271
259
  - lib/charty/version.rb
272
260
  homepage: https://github.com/red-data-tools/charty
273
261
  licenses:
@@ -288,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
276
  - !ruby/object:Gem::Version
289
277
  version: '0'
290
278
  requirements: []
291
- rubygems_version: 3.1.2
279
+ rubygems_version: 3.2.3
292
280
  signing_key:
293
281
  specification_version: 4
294
282
  summary: Visualizing your data in a simple way.