Skip to content

Commit

Permalink
fix constant function plot bug (this was fixed twice resulting in inc…
Browse files Browse the repository at this point in the history
…orrect results)
  • Loading branch information
sn6uv committed Feb 16, 2016
1 parent a576710 commit b0f6afd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mathics/builtin/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1432,16 +1432,6 @@ def round_step(value):
start_k_x = int(ceil(xmin / step_x))
start_k_x_small = int(ceil(xmin / step_x_small))

#start_x = step_x * round_to_zero((xmax - xmin) / step_x)
#start_x_small = step_x_small * \
# round_to_zero((xmax - xmin) / step_x_small)

zero_tolerance = 0.01
if xmax > xmin:
if xmin > 0 and xmin / (xmax - xmin) < zero_tolerance:
xmin = 0
if xmax < 0 and xmax / (xmax - xmin) < zero_tolerance:
xmax = 0
if xmin <= 0 <= xmax:
origin_k_x = 0
else:
Expand Down

0 comments on commit b0f6afd

Please sign in to comment.