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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy