charty 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +2 -0
- data/.github/workflows/nmatrix.yml +2 -0
- data/.github/workflows/pycall.yml +2 -0
- data/lib/charty/backends/plotly.rb +2 -2
- data/lib/charty/linspace.rb +10 -6
- data/lib/charty/plotters/abstract_plotter.rb +1 -1
- data/lib/charty/vector.rb +1 -0
- data/lib/charty/vector_adapters/pandas_adapter.rb +4 -0
- data/lib/charty/vector_adapters/vector_adapter.rb +2 -1
- data/lib/charty/vector_adapters.rb +3 -1
- data/lib/charty/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab62fdc14b2c1b6410bea925353cdb6fbd7b25d4bf81e007dad99aa5f0dd1976
|
4
|
+
data.tar.gz: d61cced997d48a2b5c26e2867a96dfc53be97e5c6c0eb85f323a11d1257a2ef6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 198e8dc2bf17033af0b124a1fbca82d2c29efde9bdaf55fb9bc57bc1184e66e0f7bd8268edfb4c13d90b46f20d955f65760db168010c5ec886c30f53f59db45d
|
7
|
+
data.tar.gz: 605dea2aab3c7633a1a3ef3351cc48f0e1f507da4993f529286c0ef0cf2b69cae7b666d22b4e4a7a993f69a9177ed441766983e6e4e9cd2e909f17f1ebbeff49
|
data/.github/workflows/ci.yml
CHANGED
@@ -309,8 +309,8 @@ module Charty
|
|
309
309
|
|
310
310
|
groups = (0 ... x.length).group_by do |i|
|
311
311
|
key = {}
|
312
|
-
key[:color] = color
|
313
|
-
key[:style] = style
|
312
|
+
key[:color] = color.iloc(i) unless color.nil?
|
313
|
+
key[:style] = style.iloc(i) unless style.nil?
|
314
314
|
key
|
315
315
|
end
|
316
316
|
|
data/lib/charty/linspace.rb
CHANGED
@@ -8,13 +8,17 @@ module Charty
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def each(&block)
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
if @num_step == 1
|
12
|
+
block.call(@range.begin)
|
13
|
+
else
|
14
|
+
step = (@range.end - @range.begin).to_r / (@num_step - 1)
|
15
|
+
(@num_step - 1).times do |i|
|
16
|
+
block.call(@range.begin + i * step)
|
17
|
+
end
|
15
18
|
|
16
|
-
|
17
|
-
|
19
|
+
unless @range.exclude_end?
|
20
|
+
block.call(@range.end)
|
21
|
+
end
|
18
22
|
end
|
19
23
|
end
|
20
24
|
end
|
data/lib/charty/vector.rb
CHANGED
@@ -57,6 +57,8 @@ module Charty
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
+
def_delegator :data, :[], :iloc
|
61
|
+
|
60
62
|
def_delegators :data, :[], :[]=
|
61
63
|
def_delegators :data, :each, :to_a, :empty?
|
62
64
|
|
@@ -148,7 +150,7 @@ module Charty
|
|
148
150
|
when Charty::Vector
|
149
151
|
where(key)
|
150
152
|
else
|
151
|
-
|
153
|
+
iloc(key_to_loc(key))
|
152
154
|
end
|
153
155
|
end
|
154
156
|
|
data/lib/charty/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.12
|
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:
|
13
|
+
date: 2022-10-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: red-colors
|
@@ -375,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
375
375
|
- !ruby/object:Gem::Version
|
376
376
|
version: '0'
|
377
377
|
requirements: []
|
378
|
-
rubygems_version: 3.
|
378
|
+
rubygems_version: 3.3.13
|
379
379
|
signing_key:
|
380
380
|
specification_version: 4
|
381
381
|
summary: Visualizing your data in a simple way.
|