gnutemplate 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gnutemplate/version.rb +1 -1
- data/lib/gnutemplate.rb +8 -8
- data/todo.txt +18 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eee2e328cf1aa0e13b0f9feb52243010ba7a1eb189e4399b20502c401badee5
|
4
|
+
data.tar.gz: 4ddcbec7e5e1e461780d3a29367bd32d974a116c4cfa23c145c9b7ecf14a8bee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c06b4a8c302745e0f9e4d2f66febd917a470650f175ecd3f28927681c48b9f5106c65f12b60069fc11f78191757fc42c0c69c9a3a712b40cca3cdfa53b0c8bbc
|
7
|
+
data.tar.gz: 1bb991e26f74a599caefce50169a1ec1ba6b9864bd27614f64f548c4105814921928da6321608e88e6fda574e50674d76e1ea949f2ddeaf6742f21ff877f8455
|
data/lib/gnutemplate/version.rb
CHANGED
data/lib/gnutemplate.rb
CHANGED
@@ -53,7 +53,7 @@ module Gnutemplate
|
|
53
53
|
set :xtics, "rotate by 90"
|
54
54
|
end
|
55
55
|
|
56
|
-
xrange ||= (rows_min.to_a.flatten.compact.min)..(rows_max.to_a.flatten.compact.max)
|
56
|
+
xrange ||= (rows_min.map(&:to_a).flatten.compact.min)..(rows_max.map(&:to_a).flatten.compact.max)
|
57
57
|
set xrange: xrange
|
58
58
|
set :grid
|
59
59
|
set style: :fill_solid
|
@@ -93,7 +93,7 @@ module Gnutemplate
|
|
93
93
|
set :xtics, "rotate by 90"
|
94
94
|
end
|
95
95
|
|
96
|
-
xrange ||= (rows_min.to_a.flatten.compact.min)..(rows_max.to_a.flatten.compact.max)
|
96
|
+
xrange ||= (rows_min.map(&:to_a).flatten.compact.min)..(rows_max.map(&:to_a).flatten.compact.max)
|
97
97
|
set xrange: xrange
|
98
98
|
set :grid
|
99
99
|
set style: :fill_solid
|
@@ -123,9 +123,9 @@ module Gnutemplate
|
|
123
123
|
alpha_hex = (alpha * 256 / 100).to_s(16).upcase
|
124
124
|
colors = ["##{alpha_hex}CC0000", "##{alpha_hex}00CC00", "##{alpha_hex}0000CC", "##{alpha_hex}888800"]
|
125
125
|
|
126
|
-
xmax ||= data.to_a.flatten.max
|
127
|
-
xmin ||= data.to_a.flatten.min
|
128
|
-
freqs = data.map {|d| d.to_a.histogram(bins, min: xmin, max: xmax) }
|
126
|
+
xmax ||= data.map(&:to_a).flatten.compact.max
|
127
|
+
xmin ||= data.map(&:to_a).flatten.compact.min
|
128
|
+
freqs = data.map {|d| d.to_a.compact.histogram(bins, min: xmin, max: xmax) }
|
129
129
|
ymax ||= freqs.map{ _1[1] }.flatten.max * 1.1
|
130
130
|
|
131
131
|
Numo.noteplot do
|
@@ -205,9 +205,9 @@ module Gnutemplate
|
|
205
205
|
alpha_hex = (alpha * 256 / 100).to_s(16).upcase
|
206
206
|
colors = ["##{alpha_hex}CC0000", "##{alpha_hex}00CC00", "##{alpha_hex}0000CC", "##{alpha_hex}888800"]
|
207
207
|
|
208
|
-
xmax ||= data.to_a.flatten.max
|
209
|
-
xmin ||= data.to_a.flatten.min
|
210
|
-
freqs = data.map {|d| d.to_a.histogram(bins, min: xmin, max: xmax) }
|
208
|
+
xmax ||= data.map(&:to_a).flatten.compact.max
|
209
|
+
xmin ||= data.map(&:to_a).flatten.compact.min
|
210
|
+
freqs = data.map {|d| d.to_a.compact.histogram(bins, min: xmin, max: xmax) }
|
211
211
|
ymax ||= freqs.map{ _1[1] }.flatten.max * 1.1
|
212
212
|
|
213
213
|
Numo.gnuplot do
|
data/todo.txt
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
nilあり対応
|
2
|
+
|
3
|
+
散布図
|
4
|
+
縦棒 積み上げ縦棒 100%積み上げ縦棒
|
5
|
+
パレート図
|
6
|
+
ave, max, min, sigma図
|
7
|
+
マッピング
|
8
|
+
contour + プロット
|
9
|
+
縦書き横並びヒスト(JSCが使ってたやつ)
|
10
|
+
+ demoにあるものでめぼしいものを
|
11
|
+
|
12
|
+
※ note, plot 統一 => むずい
|
13
|
+
|
14
|
+
・汎用的な重ね方 => クラス化するしかないと思う
|
15
|
+
現在の表記も残す
|
16
|
+
・サブプロット 簡易的にするため、同種だけ並べられるようにする。
|
17
|
+
|
18
|
+
色 自由指定+ パレット増やす
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gnutemplate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- showata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: numo-gnuplot
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- lib/gnutemplate.rb
|
55
55
|
- lib/gnutemplate/version.rb
|
56
56
|
- sig/gnutemplate.rbs
|
57
|
+
- todo.txt
|
57
58
|
homepage: https://github.com/show-o-atakun/gnutemplate
|
58
59
|
licenses:
|
59
60
|
- MIT
|