graphkit 0.3.3 → 0.3.4
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/VERSION +1 -1
- data/graphkit.gemspec +3 -3
- data/lib/graphkit/gnuplot.rb +2 -1
- data/lib/graphkit.rb +8 -1
- data/test/test_graphkit.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44fd98e2dc8c4777c23d428ee0039d7b260b50e3
|
|
4
|
+
data.tar.gz: fbaf76d9aa5b564f2f65a89ccb06ed0916513f9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cee996a524398562dec7239c7f9a87c019d3102134dd61797305e661c94c12c8b49ccdcdeb0be751afc21d5ca66aa4f25eb1619f76e25537ff59d3c418f833b4
|
|
7
|
+
data.tar.gz: 7b8b9c635c619c84fc6f5ef44a54f08b49cc8a5b8883b8fa2d15b5316666dcc2da2312a9bb0db1dd9f7db912d784d554a75790151a0dbbe4b3992543ec4c8591
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.4
|
data/graphkit.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: graphkit 0.3.
|
|
5
|
+
# stub: graphkit 0.3.4 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "graphkit"
|
|
9
|
-
s.version = "0.3.
|
|
9
|
+
s.version = "0.3.4"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Edmund Highcock"]
|
|
14
|
-
s.date = "2014-
|
|
14
|
+
s.date = "2014-08-14"
|
|
15
15
|
s.description = "A GraphKit is a device independent intelligent data container that allows the easy sharing, combining and plotting of graphic data representations. Easily created from data, they can be output in a variety of formats using packages such as gnuplot. "
|
|
16
16
|
s.email = "edmundhighcock@sourceforge.net"
|
|
17
17
|
s.extra_rdoc_files = [
|
data/lib/graphkit/gnuplot.rb
CHANGED
|
@@ -524,6 +524,7 @@ end
|
|
|
524
524
|
return File.basename(file_name, File.extname(file_name))
|
|
525
525
|
end
|
|
526
526
|
end
|
|
527
|
+
include Writer
|
|
527
528
|
|
|
528
529
|
def self.latex_multiplot(name, options={})
|
|
529
530
|
name = name.sub(/\.eps$/, '')
|
|
@@ -556,7 +557,7 @@ EOF
|
|
|
556
557
|
|
|
557
558
|
|
|
558
559
|
|
|
559
|
-
class
|
|
560
|
+
class MultiKit
|
|
560
561
|
include Writer
|
|
561
562
|
|
|
562
563
|
def gnuplot_sets
|
data/lib/graphkit.rb
CHANGED
|
@@ -276,9 +276,16 @@ end
|
|
|
276
276
|
class GraphKit < KitHash
|
|
277
277
|
|
|
278
278
|
|
|
279
|
-
class
|
|
279
|
+
class MultiKit < Array
|
|
280
|
+
def merge(other)
|
|
281
|
+
size.times do |i|
|
|
282
|
+
self[i] += other[i] if other[i]
|
|
283
|
+
end
|
|
284
|
+
self
|
|
285
|
+
end
|
|
280
286
|
|
|
281
287
|
end
|
|
288
|
+
MultiWindow = MultiKit # Backwards compatibility
|
|
282
289
|
|
|
283
290
|
|
|
284
291
|
|
data/test/test_graphkit.rb
CHANGED
|
@@ -71,6 +71,9 @@ class TestGraphkit < Test::Unit::TestCase
|
|
|
71
71
|
multiplot = GraphKit::MultiWindow.new
|
|
72
72
|
multiplot.push a
|
|
73
73
|
multiplot.push b
|
|
74
|
+
|
|
75
|
+
multiplot2 = GraphKit::MultiKit.new([GraphKit.quick_create([[0,3], [2,4]])])
|
|
76
|
+
multiplot.merge(multiplot2)
|
|
74
77
|
|
|
75
78
|
|
|
76
79
|
pp multiplot
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Edmund Highcock
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubyhacks
|