Open ehodille opened 2 years ago
Are you talking about this?
by calling:
plt.scatter(my_diagram.x_raw, my_diagram.energies)
you can see the interpolation points:
Now you may notice that for each state, there are 3 copies of the same points with a bit of jitter
That's to avoid (or at least reduce) these over/under-shoots.
You can change the number of copies (3 by default) at the instanciation of State
objects:
https://github.com/RemDelaporteMathurin/pyEnergyDiagrams/blob/d47b75abe21b06c3cfa0092a597cf142d3030803/pyenergydiagrams/main.py#L6-L9
Example with copies = 1:
You can set the number of copies to say 10 but then the local extrema are flatter, and you don't even get rid of these tiny overshoots.
I guess the solution could be to better control the y position of these interpolation points
Ok, thank you very much for your help !
Very good tool to create easily and quickly potential energy diagram. Thank you for your work.
I try to create a simple energy diagram based on examples/example_1.py
it seems it creates some involontary local minimum at each stable and unstable equilibrium position (about 10-4, which is not a lot). Is it a creation of the interpolation method ?