Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ae729d

Browse files
committedMay 29, 2020
TYPO
1 parent ff55d61 commit 9ae729d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎contrib/unittests_catch2/tu_matplotlibcpp.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,11 @@ TEST_CASE("matplotlib3d",
479479
std::vector<double> xxx, yyy, zzz;
480480
i = -5;
481481
for (auto cpt = 0; cpt < 40; ++cpt) {
482-
xx.push_back(i);
483-
yy.push_back(std::sin(std::hypot(i, i)));
482+
xxx.push_back(i);
483+
yyy.push_back(std::sin(std::hypot(i, i)));
484484
i += 0.25;
485485
}
486-
zz.push_back(2.);
486+
zzz.push_back(2.);
487487

488488
// To be sure that plt::clf() call doesn't crash.
489489
plt::ion();
@@ -497,8 +497,6 @@ TEST_CASE("matplotlib3d",
497497
SECTION("plot_surface_2") {
498498
plt::clf();
499499
REQUIRE_NOTHROW(plt::plot_surface(x, y, z));
500-
plt::clf();
501-
plt::plot_surface(x, y, z);
502500
plt::show(true);
503501
}
504502

0 commit comments

Comments
 (0)
Please sign in to comment.