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

p2D: respect preset plot limits

parent 6d2d38db
No related branches found
No related tags found
No related merge requests found
...@@ -542,11 +542,14 @@ namespace { ...@@ -542,11 +542,14 @@ namespace {
yinf = std::min(yinf, yyinf); yinf = std::min(yinf, yyinf);
ysup = std::max(ysup, yysup); ysup = std::max(ysup, yysup);
} }
plot->X.set_limits(xinf, xsup); if (!plot->X.finite())
plot->Z.set_limits(zlim.front(), zlim.back()); plot->X.set_limits(xinf, xsup);
if (!plot->Z.finite())
plot->Z.set_limits(zlim.front(), zlim.back());
if (plot->Y.logflag && !(std::isfinite(yinf) && std::isfinite(ysup))) if (plot->Y.logflag && !(std::isfinite(yinf) && std::isfinite(ysup)))
throw "No nonzero y values"; throw "No nonzero y values";
plot->Y.set_limits(yinf, ysup); if (!plot->Y.finite())
plot->Y.set_limits(yinf, ysup);
// plot // plot
plot->start_frame2D("Frida version " VERSION); plot->start_frame2D("Frida version " VERSION);
for (size_t j=0; j<m; ++j) { 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