Skip to content

Commit 70b1bf8

Browse files
committed
Indent matplotlib code
1 parent 68589c2 commit 70b1bf8

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

docs/tutorials/local_sine_tutorial.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -247,21 +247,21 @@ need to write a new allocation function.
247247
:linenos:
248248
:lineno-start: 37
249249
250-
import matplotlib.pyplot as plt
250+
import matplotlib.pyplot as plt
251251
252-
colors = ["b", "g", "r", "y", "m", "c", "k", "w"]
252+
colors = ["b", "g", "r", "y", "m", "c", "k", "w"]
253253
254-
for i in range(1, libE_specs.nworkers + 1):
255-
worker_xy = np.extract(history["sim_worker"] == i, history)
256-
x = [entry.tolist()[0] for entry in worker_xy["x"]]
257-
y = [entry for entry in worker_xy["y"]]
258-
plt.scatter(x, y, label="Worker {}".format(i), c=colors[i - 1])
254+
for i in range(1, libE_specs.nworkers + 1):
255+
worker_xy = np.extract(history["sim_worker"] == i, history)
256+
x = [entry.tolist()[0] for entry in worker_xy["x"]]
257+
y = [entry for entry in worker_xy["y"]]
258+
plt.scatter(x, y, label="Worker {}".format(i), c=colors[i - 1])
259259
260-
plt.title("Sine calculations for a uniformly sampled random distribution")
261-
plt.xlabel("x")
262-
plt.ylabel("sine(x)")
263-
plt.legend(loc="lower right")
264-
plt.savefig("tutorial_sines.png")
260+
plt.title("Sine calculations for a uniformly sampled random distribution")
261+
plt.xlabel("x")
262+
plt.ylabel("sine(x)")
263+
plt.legend(loc="lower right")
264+
plt.savefig("tutorial_sines.png")
265265
266266
Each of these example files can be found in the repository in `examples/tutorials/simple_sine`_.
267267

0 commit comments

Comments
 (0)