Menu

#1904 splot with dot gives error

None
closed-fixed
nobody
None
2017-02-09
2017-02-07
Anonymous
No

Bonjour,

I am using Version 5.0 patchlevel 5 last modified 2016-10-02, on a MacBook pro (OSX v 10.11.6)
Installion with MacPorts. This has been running fine for years (Thank you BTW).

I now have an error with the following test case:


set term wxt
set output

$d << EOD
1.0 2.0 3.0
4.0 5.0 6.0
7.0 8.0 9.0
EOD

splot $d u 1:2:3 w p pt 7 ps 1.0
pause -1 "Enter Return"

splot $d u 1:2:3 w d


The first "splot" works as usual (3 points). The second leads to this message (without any output):

     "dot_bug.gp", line 13: nextfrom_dynarray: dynarray wasn't initialized!

After a bit of google search I noticed some old messages, with similar (but not identical) problems. So I tried:

splot $d u 1:2:3 w p pt 0

It works smoothly.

This happens only with "splot". Everything is fine with "plot" (2D).

Any idea?

Discussion

  • Ethan Merritt

    Ethan Merritt - 2017-02-07

    The error you describe ("dots" fails but "pt 0" works) was present in pre-release versions of gnuplot5, and in the qt terminal only for released version 5.0.0 (maybe also 5.0.1?). I cannot explain why you would be seeing it now. So I am guessing this is a different problem. It is especially puzzling because the error message you show comes from the hidden3d code, yet your test script does not include "set hidden3d".

    I can't reproduce it here, but I'm not running OSX.

     
  • Bastian Märkisch

    FWIW it also does not reproduce here on Windows using 5.0.5.

     
  • Le Bourlot

    Le Bourlot - 2017-02-07

    Everything was fine until last week.

    1 - Adding "unset hidden3d" solves the problem. Thank you for the tip. I will use it until further progress.

    2 - I'm not sure of it, but I think I remember there has been an update of MacPorts recently.
    I will crosspost to them to check if it comes from there.

     
  • Ethan Merritt

    Ethan Merritt - 2017-02-07

    Aha. So you were using hidden3d. Yes, I can reproduce the error message with dots in hidden3d mode. Still there in the current CVS version.

     
  • Le Bourlot

    Le Bourlot - 2017-02-07

    I did not know it! It is set by default, although I do not know where or why.

     
    • Hans-Bernhard Broeker

      I do not know where or why.

      You'll want to consult "help startup"

       
  • Ethan Merritt

    Ethan Merritt - 2017-02-07
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2017-02-07

    Fixed now in CVS for 5.0 and 5.1

     
  • Le Bourlot

    Le Bourlot - 2017-02-07

    Thank you!

    Jacques

     
  • Le Bourlot

    Le Bourlot - 2017-02-09

    People at MacPorts (Mojca) applied your patch. After an "upgrade outdated", everything works as expected.
    Thank you everybody.

     
  • Ethan Merritt

    Ethan Merritt - 2017-03-17
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.