Skip to content

Commit 671c6ad

Browse files
authored
Merge pull request #4 from williambdean/readme-ruff
ruff format README example
2 parents 2bb6c6a + 2d091e1 commit 671c6ad

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,19 @@ import matplotlib.pyplot as plt
3434

3535
# Create a grid of values and uncertainties for better visualization
3636
n_points = 50
37-
step = 1/n_points
38-
values = np.linspace(step/2, 1-step/2, n_points)
39-
uncertainties = np.linspace(step/2, 1-step/2, n_points)
37+
step = 1 / n_points
38+
values = np.linspace(step / 2, 1 - step / 2, n_points)
39+
uncertainties = np.linspace(step / 2, 1 - step / 2, n_points)
4040

4141
# Create a 2D grid
4242
values, uncertainties = np.meshgrid(values, uncertainties)
4343

4444
# Colorize the data
4545
axs = plt.subplots(3, 3, figsize=(9, 9))[1]
4646

47-
for row, quantization in zip(axs, [None, 'linear','tree']):
47+
for row, quantization in zip(axs, [None, "linear", "tree"]):
4848
for ax, mode in zip(row, ["us", "ul", "usl"]):
49-
50-
vsup = VSUP(palette='flare', mode=mode, quantization=quantization)
49+
vsup = VSUP(palette="flare", mode=mode, quantization=quantization)
5150

5251
colors = vsup(values, uncertainties)
5352
ax.pcolormesh(values, uncertainties, colors)

0 commit comments

Comments
 (0)