Skip to content

Commit

Permalink
Add target profile icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Jul 26, 2019
1 parent a5b22aa commit d803c83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gui/builtinGraphs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ def _calcPlotPoints(self, mainInput, miscInputs, xSpec, ySpec, fit, tgt):
ys = [ys[0], ys[0]]
else:
raise
# Same for NaN which means we tried to denormalize infinity values, which might be the
# case for the ideal target profile with infinite signature radius
if mainInput.unit == xSpec.unit == '%' and all(math.isnan(x) for x in xs):
xs = [min(mainInput.value), max(mainInput.value)]
ys = [ys[0], ys[0]]
else:
# Same for NaN which means we tried to denormalize infinity values, which might be the
# case for the ideal target profile with infinite signature radius
if mainInput.unit == xSpec.unit == '%' and all(math.isnan(x) for x in xs):
xs = [min(mainInput.value), max(mainInput.value)]
ys = [ys[0], ys[0]]
return xs, ys

_normalizers = {}
Expand Down
Binary file added imgs/gui/target_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d803c83

Please sign in to comment.