Loading and visualizing paths

Loading paths

To load paths saved by the find_orbits function, use the read_path_from_file function. This function receives a single argument, filename, which is a String that indicates the path to the file where the path has been saved by the find_orbits function.

Note that it outputs a Problem object and a Path object.

Example


julia> P, Γ = read_path_from_file("7.4797.toml")(N: 3 dim: 2 F: 24 steps: 48 masses: [1.0, 1.0, 1.0] denominator: f(x) = x Symmetry group: SymmetryGroup of type Cyclic * ker(τ): Subgroup of order 1 * g = GroupElement: σ: [2, 3, 1] M: [1.0 0.0; 0.0 1.0] * Cyclic order = 3 , [0.9516712035247621, 0.5337575336240781, -0.013588018470095123, -1.0910502049038127, 0.477599810851139, -0.2837305676608875, -0.48451778485009334, -0.2717482852092318, 0.038353947933863264, 0.06456067962509607 … -1.7974937204651228e-5, -1.0081484137099445e-5, 1.5718070300515457e-5, 2.6458014250451547e-5, 1.5054277324316284e-5, -2.6841255303907602e-5, -0.013588018470095123, -1.0910502049038127, -0.9380831850546669, 0.5572926712797346])

Orbits visualization

To visualize orbits, use the path_animation function.

Note

The path_animation function uses the GLMakie.jl package to create the animation. Therefore, you need to install it by typing the following command in the Package Manager:

] add GLMakie

Note that this package must be explicitly loaded before using the path_animation function.

The path_animation function receives the following arguments: -P: A Problem object.

  • Γ: A Path object.

or -filename: A String that indicates the path to the file where the path has been saved by the find_orbits function.

Example

path_animation(P, Γ)

Or, if you want to load the path directly from the file:

path_animation("7.4797.toml")