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

deal with rounding error in 2D y limits

parent 40dc9f20
No related branches found
No related tags found
No related merge requests found
......@@ -562,7 +562,7 @@ namespace {
if (plot->Y.logflag && !(std::isfinite(yinf) && std::isfinite(ysup)))
throw "No nonzero y values";
if (!plot->Y.finite())
plot->Y.set_limits(yinf, ysup);
plot->Y.set_limits(yinf-1e-4*std::abs(yinf), ysup+1e-4*std::abs(ysup));
// plot
plot->start_frame2D("Frida version " VERSION);
for (size_t j=0; j<m; ++j) {
......
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