Hi Alan, Sergej,

> -----Original Message-----
> From: Alan W. Irwin [mailto:alan.w.irwin1...@gmail.com]
> Sent: Wednesday, November 21, 2018 9:13 AM
>
> Your result suggested to me the possibility that plhist had a memory 
> management
> issue so I checked that possibility with valgrind, and the result was 
> perfect, i.e.,
>
...
>
> So from these results I think our plhist source code should be fine.
> Of course, the perfect valgrind results here mean I have no clue at all why 
> you are
> running into intermittent trouble with plhist there.
> Sorry I cannot help more, but I wish you the best of luck in figuring out the 
> issue on
> your platform.
>
The coredump seems to have been due to a mistake in the print statement - at 
least I found a small bug in there and when I rebuilt PLplot and the test 
program that coredump was gone.

Solving the non-amuzing build problem was easier than I thought: I now use the 
newer CMake version that I built on Cygwin, not the one that comes with the 
platform. I used that in the comprehensive tests, but not yet to build the 
libraries and examples on their own. While it is good to be able to build 
PLplot again without any problems, it is a riddle why the stock version of 
CMake does not work. As I get a new computer next week, I will have the 
opportunity to re-install Cygwin and see whether this was simply a quirk (may I 
blame it on alpha particles or the  phase of the moon?) or something more 
serious.

To Sergej:
The good news is that I have been able to get the histogram to be drawn. 
Instead of 0 I use as option to the plhist() routine a value of 1. This forces 
it not to redefine the window (not to call plenv()).

As to why a value of 0 causes it to produce an empty plot, is something I would 
like to find out - it works in  example x05c after all.

See the attached picture (I used 6 bins instead of 11, to see if the bins are 
done correctly).

Regards,

Arjen
DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to