Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
revert to still use .00 on x/y axes in plots (e.g. box plot, scatter plot etc.) so to match the screenshot in lab
  • Loading branch information
lixun910 committed Dec 19, 2018
1 parent ffe97d9 commit a5d7e89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GenUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,12 +1263,16 @@ wxString GenUtils::DblToStr(double x, int precision)
if (x < 10000000) {
ss << std::fixed;
}
if (x == (int)x) {
/*
if (x == (int)x) {
ss << (int)x;
} else {
ss << std::setprecision(precision);
ss << x;
}
*/
ss << std::setprecision(precision);
ss << x;
return wxString(ss.str().c_str(), wxConvUTF8);
}

Expand Down

0 comments on commit a5d7e89

Please sign in to comment.