Skip to content

Commit 2dcf06a

Browse files
committed
Fixed massive warnings from Gnuplot
1 parent 70188b0 commit 2dcf06a

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

include/bspline.hpp

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5651,7 +5651,9 @@ class BSplineCommon : public Spline_,
56515651
res0 = json["res0"].get<int64_t>();
56525652

56535653
// Create figure with specified backend
5654-
auto f = matplot::figure<Backend>(true);
5654+
auto f = matplot::figure<Backend>(false);
5655+
f->backend()->run_command("unset warnings");
5656+
f->ioff();
56555657
auto ax = f->current_axes();
56565658

56575659
// Create line
@@ -5786,7 +5788,9 @@ class BSplineCommon : public Spline_,
57865788
res0 = json["res0"].get<int64_t>();
57875789

57885790
// Create figure with specified backend
5789-
auto f = matplot::figure<Backend>(true);
5791+
auto f = matplot::figure<Backend>(false);
5792+
f->backend()->run_command("unset warnings");
5793+
f->ioff();
57905794
auto ax = f->current_axes();
57915795

57925796
// Create curve
@@ -5935,7 +5939,9 @@ class BSplineCommon : public Spline_,
59355939
res0 = json["res0"].get<int64_t>();
59365940

59375941
// Create figure with specified backend
5938-
auto f = matplot::figure<Backend>(true);
5942+
auto f = matplot::figure<Backend>(false);
5943+
f->backend()->run_command("unset warnings");
5944+
f->ioff();
59395945
auto ax = f->current_axes();
59405946

59415947
auto Coords =
@@ -6106,7 +6112,9 @@ class BSplineCommon : public Spline_,
61066112
res1 = json["res1"].get<int64_t>();
61076113

61086114
// Create figure with specified backend
6109-
auto f = matplot::figure<Backend>(true);
6115+
auto f = matplot::figure<Backend>(false);
6116+
f->backend()->run_command("unset warnings");
6117+
f->ioff();
61106118
auto ax = f->current_axes();
61116119

61126120
// Create mesh
@@ -6266,7 +6274,9 @@ class BSplineCommon : public Spline_,
62666274
res1 = json["res1"].get<int64_t>();
62676275

62686276
// Create figure with specified backend
6269-
auto f = matplot::figure<Backend>(true);
6277+
auto f = matplot::figure<Backend>(false);
6278+
f->backend()->run_command("unset warnings");
6279+
f->ioff();
62706280
auto ax = f->current_axes();
62716281

62726282
// Create surface

0 commit comments

Comments
 (0)