Skip to content

Commit b8f0c00

Browse files
committed
whitespace
1 parent baba34a commit b8f0c00

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/imshow.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ namespace plt = matplotlibcpp;
88
int main()
99
{
1010
// Prepare data
11-
int ncols = 500, nrows = 300;
11+
int ncols = 500, nrows = 300;
1212
std::vector<float> z(ncols * nrows);
13-
for(int j=0; j<nrows; ++j) {
14-
for(int i=0; i<ncols; ++i) {
13+
for (int j=0; j<nrows; ++j) {
14+
for (int i=0; i<ncols; ++i) {
1515
z.at(ncols * j + i) = std::sin(std::hypot(i - ncols/2, j - nrows/2));
1616
}
17-
}
17+
}
1818

1919
const float* zptr = &(z[0]);
2020
const int colors = 1;
2121

2222
plt::title("My matrix");
23-
plt::imshow(zptr, nrows, ncols, colors);
23+
plt::imshow(zptr, nrows, ncols, colors);
2424

25-
// Show plots
26-
plt::save("imshow.png");
25+
// Show plots
26+
plt::save("imshow.png");
2727
}

0 commit comments

Comments
 (0)