joferkington / mplstereonet

Stereonets for matplotlib
MIT License
189 stars 66 forks source link

Add example for Fisher statistics #10

Closed tobias47n9e closed 9 years ago

tobias47n9e commented 9 years ago

This is one of the examples in:

Fisher, N.I., Lewis, T., Embleton, B.J.J. (1993) "Statistical Analysis of Spherical Data"

The values seem to be in good agreement.

The example has a small bug that I also encounter in InnStereo (on Fedora 21), that the smallcircle (or cone) is often filled. When starting the example a few times the circles are randomly filled or empty. No idea why that is happening.

fisher_stats_example

joferkington commented 9 years ago

Fantastic! Thanks for this!

I'll have to look into the cone/small circle issue. It's probably a vertex ordering problem, though I'm just guessing. Either way, there aren't any checks that the vertices are in a consistent order, and there probably should be.

If you do happen to come across an example that consistently reproduces it, open an issue or drop me a line.

Thanks again!

tobias47n9e commented 9 years ago

Thanks for merging!

Actually any example that uses the cone-function has a stochastic behavior (filled / not filled) for me. I haven't noticed a way to consistently reproduce the bug.