Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
fix default axis
Browse files Browse the repository at this point in the history
  • Loading branch information
minorcong committed May 3, 2018
1 parent 6d6fbba commit 1373dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/curve/v1/services/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def y_axis(api, line):
:param line: data raws
:return:
"""
values = np.asarray([point[0] for point in line if point[1] is not None])
values = np.asarray([point[1] for point in line if point[1] is not None])
value_min, value_max = np.min(values), np.max(values)
y_axis_min_per, y_axis_max_per = np.percentile(values, 0.3), np.percentile(values, 99.7)
y_axis_min = y_axis_min_per - (y_axis_max_per + y_axis_min_per) * 0.05
Expand Down

0 comments on commit 1373dfa

Please sign in to comment.