Skip to content

Commit 7192e87

Browse files
committed
Touch up plotting.
1 parent 6c2ef44 commit 7192e87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/tutorial-plotting-fractals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ for i in range(num_iter):
170170
outputs[i+1] = f(outputs[i]) # Apply 10 iterations, save each output
171171
172172
fig, axes = plt.subplots(1, selected_values.shape[0], figsize=(16, 6))
173+
axes[1].set_xlabel('Real axis')
174+
axes[0].set_ylabel('Imaginary axis')
173175
174176
for ax, data in zip(axes, outputs.T):
175-
ax.set_xlabel('Real axis')
176-
ax.set_ylabel('Imaginary axis')
177-
ax.set_title(f'Mapping of iterations on {data[0]}')
178177
cycle = ax.scatter(data.real, data.imag, c=range(data.shape[0]), alpha=0.6)
178+
ax.set_title(f'Mapping of iterations on {data[0]}')
179179
180180
fig.colorbar(cycle, ax=axes, location="bottom", label='Iteration');
181181
```

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