Skip to content

Commit 1208fd3

Browse files
committed
fixing docs
1 parent a0f2d5e commit 1208fd3

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

docs/examples/geometry/plot_ring_3.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,28 @@
1818
structure_type=StructureType.CIRCULAR,
1919
number_of_fibers=3,
2020
fusion_degree=0.4,
21-
fiber_radius=62.5e-6
21+
fiber_radius=62.5e-6,
2222
)
2323

24-
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
24+
profile.refractive_index = (
25+
1.4444 # Refractive index of silica at the specified wavelength
26+
)
2527

2628

2729
# Load fibers (e.g., SMF-28) positioned at the cores of the profile structure
2830
fiber_loader = FiberLoader()
2931
fibers = [
30-
fiber_loader.load_fiber('SMF28', clad_refractive_index=profile.refractive_index, position=core_position)
32+
fiber_loader.load_fiber(
33+
"SMF28", clad_refractive_index=profile.refractive_index, position=core_position
34+
)
3135
for core_position in profile.cores
3236
]
3337

3438
# Set up the geometry with the defined background, profile structure, and resolution
3539
geometry = Geometry(
3640
x_bounds=DomainAlignment.CENTERING,
3741
y_bounds=DomainAlignment.CENTERING,
38-
resolution=350
42+
resolution=350,
3943
)
4044

4145
# Add the fibers to the geometry
@@ -44,4 +48,4 @@
4448
geometry.initialize()
4549

4650
# Plot the resulting geometry
47-
geometry.plot(show_patch=True)
51+
geometry.plot()

0 commit comments

Comments
 (0)