File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 98
98
rescale_gradient (r:: StepRange , g) = g / r. step
99
99
rescale_gradient (r:: UnitRange , g) = g
100
100
101
- @static if isdefined (:FloatRange ) & isa (: FloatRange , DataType)
101
+ @static if isdefined (:FloatRange ) & isa (FloatRange, DataType)
102
102
rescale_gradient (r:: LinSpace , g) = g * r. divisor / (r. stop - r. start)
103
103
rescale_gradient (r:: FloatRange , g) = g * r. divisor / r. step
104
104
coordlookup (r:: LinSpace , x) = (r. divisor * x + r. stop - r. len * r. start) / (r. stop - r. start)
105
105
coordlookup (r:: FloatRange , x) = (r. divisor * x - r. start) / r. step + one (eltype (r))
106
- boundstep (r:: LinSpace ) = ((r. stop - r. start) / r. divisor) / 3
107
- boundstep (r:: FloatRange ) = r. step / 3
106
+ boundstep (r:: LinSpace ) = ((r. stop - r. start) / r. divisor) / 2
107
+ boundstep (r:: FloatRange ) = r. step / 2
108
108
end
109
109
110
110
"""
You can’t perform that action at this time.
0 commit comments