Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field Profile Analysis module. Wrong position when plotting metrics (i. e. field edges and center). #536

Open
LuisOlivaresJ opened this issue Dec 20, 2024 · 0 comments

Comments

@LuisOlivaresJ
Copy link
Contributor

LuisOlivaresJ commented Dec 20, 2024

Describe the bug
I am working with FieldProfileAnalysis. After calling plot_analyzed_images() method, the resulting figure shows the metrics at index position instead of physical position.

To Reproduce
You can see it in the Flied Profile Analysis documentation.

Screenshot from 2024-12-20 11-28-06

Expected behavior
I took the below screenshot from V3.25.0
documentation, when the x label was index intead of physical postion.

Screenshot from 2024-12-20 11-29-00

Additional context
As can be seen in profile.py line 808, we are calling the inherited _plot() method with physical_x_values (as expected), but inside the _plot() method, the metrics are added to the figure at index positions (using self.field_edge_idx and self.center_idx, for example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant