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

2D graphs are a bit off, shifted to the left #7

Closed
dccote opened this issue Feb 3, 2021 · 0 comments · Fixed by #8
Closed

2D graphs are a bit off, shifted to the left #7

dccote opened this issue Feb 3, 2021 · 0 comments · Fixed by #8
Labels
invalid This doesn't seem right

Comments

@dccote
Copy link
Contributor

dccote commented Feb 3, 2021

The boundaries pour imshow() appear to be off, and the graph appears shifted to the left, or they are not binned properly.

I think the calculation in stats.py should be + 0.5 instead of -0.5:

        i = int(self.binSizes[0]*(position.x-self.min[0])+0.5)
        j = int(self.binSizes[1]*(position.y-self.min[1])+0.5)
        k = int(self.binSizes[2]*(position.z-self.min[2])+0.5)
@dccote dccote added the invalid This doesn't seem right label Feb 3, 2021
@dccote dccote linked a pull request Feb 6, 2021 that will close this issue
@dccote dccote closed this as completed in #8 Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant