Skip to content

Commit b5b41fd

Browse files
committed
update
1 parent 73af23b commit b5b41fd

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

docs/examples/basic/plot_comparison_solvers.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from PyFiberModes.fiber import load_fiber
1313
from PyFiberModes import LP01
14-
from MPSPlots.render2D import SceneList
14+
import matplotlib.pyplot as plt
1515

1616
fiber_2L = load_fiber(
1717
fiber_name='SMF28',
@@ -42,18 +42,13 @@
4242
data_3L.append(neff_3L)
4343

4444

45-
figure = SceneList()
46-
47-
ax = figure.append_ax(
48-
show_legend=True,
49-
x_label='Inverse taper ration [ITR]',
50-
y_label='LP01 effective index'
51-
)
52-
53-
ax.add_line(x=itr_list, y=data_2L, label='2 layer', line_width=3)
54-
ax.add_scatter(x=itr_list, y=data_3L, label='3 layer', marker_size=20)
45+
figure, ax = plt.subplots(1, 1, figsize=(10, 6))
5546

47+
ax.set_xlabel('Inverse taper ratio [ITR]')
48+
ax.set_ylabel('LP01 effective index')
49+
ax.plot(itr_list, data_2L, label='2 layer', linewidth=3)
50+
ax.plot(itr_list, data_3L, label='3 layer', marker='o', markersize=5)
5651

57-
figure.show()
52+
plt.show()
5853

5954
# -

0 commit comments

Comments
 (0)