Skip to content

Commit

Permalink
Fix major error in scale inference.
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed Jun 6, 2016
1 parent 208f21b commit 89b1d10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions leather/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ def to_svg(self, width, height, scale, orient):
else:
group.append(tick_group)

print(value, range_min, range_max)

# Tick line
projected_value = scale.project(value, range_min, range_max)

Expand Down
2 changes: 1 addition & 1 deletion leather/scales/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def infer(cls, layers, dimension, data_type):
if data_max is None:
data_max = series.max(dimension)
else:
data_max = min(data_max, series.max(dimension))
data_max = max(data_max, series.max(dimension))

if force_zero:
if data_min > 0:
Expand Down

0 comments on commit 89b1d10

Please sign in to comment.