Note
Go to the end to download the full example code.
Effect of translation#
from FiberFusing.profile import Profile, StructureType
profile = Profile()
profile.add_structure(
structure_type=StructureType.LINEAR,
number_of_fibers=3,
fusion_degree=0.3,
fiber_radius=62.5e-6
)
profile.plot(show_cores=True, show_centers=True)

<Figure size 800x500 with 1 Axes>
shift = (0, 0)
profile = profile.translate(shift)
profile.plot()

<Figure size 800x500 with 1 Axes>
shift = (20e-6, 0)
profile = profile.translate(shift)
profile.plot()

<Figure size 800x500 with 1 Axes>
Total running time of the script: (0 minutes 2.353 seconds)