gerbilcharts 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,4 +1,4 @@
1
- == 0.2.5 2009-10-27
1
+ == 0.2.6 2009-10-27
2
2
  * Changes
3
3
  * Negative values work good
4
4
  * Much better timerange selection
@@ -13,7 +13,6 @@ class VerticalAxis < Axis
13
13
 
14
14
  @use_cumulative_y = false
15
15
  @use_cumulative_y = opts[:cumulative] if opts[:cumulative]
16
- @butterfly=true
17
16
  end
18
17
 
19
18
  def int_render(g)
@@ -22,14 +21,16 @@ class VerticalAxis < Axis
22
21
 
23
22
  return if parent.modelgroup.empty?
24
23
 
24
+ butterfly = parent.get_global_option(:butterfly,false)
25
+
25
26
  if @use_cumulative_y
26
27
  ry = parent.modelgroup.cumulative_sweep_round_range_y0
27
28
  else
28
29
  ry = parent.modelgroup.effective_range_y(parent.get_global_option(:scaling_y,:auto))
29
30
  end
30
31
 
31
- ry.update(-ry.rmax) if @butterfly
32
-
32
+ # butterfly mode
33
+ ry.update(-ry.rmax) if parent.get_global_option(:butterfly,false)
33
34
 
34
35
  ry.each_label do |val,label|
35
36
  yp = scale_y val,ry
@@ -2,7 +2,7 @@ module GerbilCharts
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gerbilcharts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek Rajagopalan