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

Coordinates for region drawing #2

Open
freeman-lab opened this issue Jan 22, 2015 · 0 comments
Open

Coordinates for region drawing #2

freeman-lab opened this issue Jan 22, 2015 · 0 comments

Comments

@freeman-lab
Copy link
Member

The coordinates underlying the image plot type might be flipped in y compared to the expected coordinates system. For example, if drawing a region during the following:

lgn = Lightning()
viz = lgn.image(random.randn(200,100))
bounds = asarray(viz.coords[0])

If we then plot the coordinates as a scatter plot, the result is flipped in y relative to how the region looks in the image:

lgn.scatter(bounds[:,0], bounds[:,1])

This could probably be fixed just by manipulating the transform by which points in image coordinate space are extracted from the polygon regions.

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

No branches or pull requests

1 participant