diff --git a/gui/builtinGraphs/base.py b/gui/builtinGraphs/base.py index 8fb9f6603..3ef2ba4ca 100644 --- a/gui/builtinGraphs/base.py +++ b/gui/builtinGraphs/base.py @@ -152,11 +152,12 @@ class FitGraph(metaclass=ABCMeta): 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 = {} diff --git a/imgs/gui/target_small.png b/imgs/gui/target_small.png new file mode 100644 index 000000000..0c8d58a3f Binary files /dev/null and b/imgs/gui/target_small.png differ