flotr 1.3.10 → 1.3.11

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.
Files changed (2) hide show
  1. data/examples/sincos.rb +7 -3
  2. metadata +23 -9
@@ -4,7 +4,9 @@
4
4
  # Copyright (c) 2009 University of Trento. All rights
5
5
  # reserved.
6
6
 
7
- require "../lib/flotr"
7
+ # require "../lib/flotr"
8
+ require "rubygems"
9
+ require "flotr"
8
10
 
9
11
  sin = Flotr::Data.new(:label => "Sin(x)", :color => "red")
10
12
  cos = Flotr::Data.new(:label => "Cos(x)", :color => "blue")
@@ -15,7 +17,7 @@ cos = Flotr::Data.new(:label => "Cos(x)", :color => "blue")
15
17
  end
16
18
 
17
19
  plot = Flotr::Plot.new("Test plot")
18
- plot.output_file = "SinCos.html"
20
+ plot.output_file = "SinCos1.html"
19
21
  plot.comment = "This is a test plot made with Flotr"
20
22
  plot.options = {:legend_position => "ne", :points => 'true'}
21
23
  plot.height = 480
@@ -24,4 +26,6 @@ plot.label = {:X => "X"} # :Y label seems not working on Safari
24
26
  plot.ylim = {:min=> -1.5, :max => 1.5}
25
27
  plot << sin
26
28
  plot << cos
27
- plot.show
29
+ plot.show
30
+ plot.output_file = "SinCos2.html"
31
+ plot.show
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flotr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.10
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 3
8
+ - 11
9
+ version: 1.3.11
5
10
  platform: ruby
6
11
  authors:
7
12
  - Paolo Bosetti
@@ -9,19 +14,24 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-11-04 00:00:00 +01:00
17
+ date: 2010-07-30 00:00:00 +02:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: erubis
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ - 6
31
+ - 4
23
32
  version: 2.6.4
24
- version:
33
+ type: :runtime
34
+ version_requirements: *id001
25
35
  description: Flotr (pron. like "plotter") is a Ruby plotter via flot.
26
36
  email: paolo.bosetti@me.com
27
37
  executables: []
@@ -52,21 +62,25 @@ rdoc_options:
52
62
  require_paths:
53
63
  - lib
54
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
+ none: false
55
66
  requirements:
56
67
  - - ">="
57
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
58
71
  version: "0"
59
- version:
60
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
61
74
  requirements:
62
75
  - - ">="
63
76
  - !ruby/object:Gem::Version
77
+ segments:
78
+ - 0
64
79
  version: "0"
65
- version:
66
80
  requirements: []
67
81
 
68
82
  rubyforge_project: flotr
69
- rubygems_version: 1.3.5
83
+ rubygems_version: 1.3.7
70
84
  signing_key:
71
85
  specification_version: 2
72
86
  summary: Flotr (pron. like "plotter") is a Ruby plotter via flot.