8000 Fix indent · lava/matplotlib-cpp@8bf4f70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bf4f70

Browse files
committed
Fix indent
1 parent 03577ed commit 8bf4f70

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

examples/animation.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ int main()
1515
z.push_back(log(i));
1616

1717
if (i % 10 == 0) {
18-
// Clear previous plot
19-
plt::clf();
20-
// Plot line from given x and y data. Color is selected automatically.
21-
plt::plot(x, y);
22-
// Plot a line whose name will show up as "log(x)" in the legend.
23-
plt::named_plot("log(x)", x, z);
18+
// Clear previous plot
19+
plt::clf();
20+
// Plot line from given x and y data. Color is selected automatically.
21+
plt::plot(x, y);
22+
// Plot a line whose name will show up as "log(x)" in the legend.
23+
plt::named_plot("log(x)", x, z);
2424

25-
// Set x-axis to interval [0,1000000]
26-
plt::xlim(0, 1000*1000);
25+
// Set x-axis to interval [0,1000000]
26+
plt::xlim(0, n*n);
2727

28-
// Add graph title
29-
plt::title("Sample figure");
30-
// Enable legend.
31-
plt::legend();
32-
// Display plot
33-
plt::pause(0.1);
28+
// Add graph title
29+
plt::title("Sample figure");
30+
// Enable legend.
31+
plt::legend();
32+
// Display plot continuously
33+
plt::pause(0.1);
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)
0