Skip to content
Snippets Groups Projects
Commit 929cfb96 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

exclude nan and inf from computing plot limits

parent 3df109f7
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,10 @@
Release 2.4.0b of 21apr17:
- Modified functionality:
- sqrt, ln, lg return NaN outside their definition range
- sqrt, ln, lg return +-inf or nan outside their definition range
- sqrt0, ln0, lg0 return 0 outside the definition range of the standard functions
- Bug fix:
- detection of dy==0 for fit weighing was inverted
- correct inverted boolean dy==0 in fit weight mechanism
Release 2.4.0a of 24mar17:
......
......@@ -111,7 +111,7 @@ namespace {
for (int i = 0; i < s->size(); i++) {
if (!plot->X.contains(s->x[i]))
continue;
if (plot->Y.logflag && s->y[i] <= 0)
if (!std::isfinite(s->y[i]) || plot->Y.logflag && s->y[i] <= 0)
continue;
if (s->y[i] < inf)
inf = s->y[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment