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

Using ginput to select points on the plot and print them doesn't print data values #43

Open
StewTheBrew opened this issue Nov 25, 2021 · 0 comments

Comments

@StewTheBrew
Copy link

Hi everyone,
so basically I am trying to use ginput https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.ginput.html, to interactively select points on the plots, that's because it seems the most practical, as I tried event handling and picking of matplotlib but these are more complex (not really, but ginput is handier) and anyway they don't give any different results. The problem is the system doesn't print data, but axes values instead, so for example if I pick azimuth=45°/dip=70° the output is [1.10190524, 0.720939] that I assume are the x, y coordinates of the axes. So even if I try to convert them, the results are more and more biased as I move away from the center of the axes, which I assume is due to the stretching of the plot getting towards the edge, even if I am not sure since I am not to deep into this kind of math/transformation-related problems.

Is there a way to transform these values so to have the right orientation values (e.g. azimuth and dip) in output?

Thanks a lot for the patience in reading this and thanks in advance to anyone who's going to answer
Stew

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