8000 avoid warning due to identical ymax and ymin in the vector w · Mgomez-01/matplotlib-cpp@9a3d1ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a3d1ef

Browse files
committed
avoid warning due to identical ymax and ymin in the vector w
1 parent 6e0558d commit 9a3d1ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/eigen/loglog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ int main() {
1818
}
1919

2020
// Plot line from given x and y data. Color is selected automatically.
21-
plt::loglog(x, w);
21+
plt::loglog(x, y);
2222

2323
// Plot a red dashed line from given x and y data.
24-
plt::loglog(x, y, "r--");
24+
plt::loglog(x, w, "r--");
2525

2626
// Plot a line whose name will show up as "log(x)" in the legend.
2727
plt::loglog(x, z, "g:", {{"label", "$x^3$"}});

0 commit comments

Comments
 (0)
0