Menu

#46 plhist seems odd v 5.14

None
closed
None
5
2018-12-21
2018-12-21
DrO
No

There may be a problem with plhist, using v 5.14/gFortran 7.2. If the upper/lower (bin/x-axis) bounds of the hist are too small, then there appear spurious frequencies in the "wings" (i.e. at each of the far ends).

I have tested several distribution. I attach four results for Standard Normal (Gaussian) dist with bounds of (-1,1), (-2,2), (-3,3), and (-5,5). Once the bounds are wide enough, all is well, but otherwise the hist is wrong. The narrower the bounds, the worse the error in the wings.

4 Attachments

Related

Support Requests: #46

Discussion

  • Alan W. Irwin

    Alan W. Irwin - 2018-12-21

    Those examples are working correctly for the opt=PL_HIST_DEFAULT case (see http://plplot.org/docbook-manual/plplot-html-5.14.0/plhist.html). Therefore, I am going to close this support request. However, when I systematically looked at other opt values for a modified version of C example 5, I found there were some bugs in our plhist C library code which I will try to sort out today. So watch our git log for those fixes. And those fixes should automatically propagate to our Fortran binding for that library if you use the git master tip version of PLplot (or 5.15.0 when it comes out).

     
  • Alan W. Irwin

    Alan W. Irwin - 2018-12-21
    • status: open --> closed
    • assigned_to: Alan W. Irwin
    • Group: -->
     

Log in to post a comment.