We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18db2e1 commit 06425a4Copy full SHA for 06425a4
contrib/unittests_catch2/tu_matplotlibcpp.cpp
@@ -479,11 +479,11 @@ TEST_CASE("matplotlib3d",
479
std::vector<double> xxx, yyy, zzz;
480
i = -5;
481
for (auto cpt = 0; cpt < 40; ++cpt) {
482
- xx.push_back(i);
483
- yy.push_back(std::sin(std::hypot(i, i)));
+ xxx.push_back(i);
+ yyy.push_back(std::sin(std::hypot(i, i)));
484
i += 0.25;
485
}
486
- zz.push_back(2.);
+ zzz.push_back(2.);
487
488
// To be sure that plt::clf() call doesn't crash.
489
plt::ion();
@@ -497,8 +497,6 @@ TEST_CASE("matplotlib3d",
497
SECTION("plot_surface_2") {
498
plt::clf();
499
REQUIRE_NOTHROW(plt::plot_surface(x, y, z));
500
- plt::clf();
501
- plt::plot_surface(x, y, z);
502
plt::show(true);
503
504
0 commit comments