mplstereonet icon indicating copy to clipboard operation
mplstereonet copied to clipboard

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

Open StewTheBrew opened this issue 3 years ago • 0 comments

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

StewTheBrew avatar Nov 25 '21 11:11 StewTheBrew