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 +1 -1
- data/lib/gerbilcharts/surfaces/vertical_axis.rb +4 -3
- data/lib/gerbilcharts/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -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
|
-
|
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
|
data/lib/gerbilcharts/version.rb
CHANGED