Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1190 plot command ignores input format string

closed-fixed
nobody
Other (155)
5
2012-11-14
2012-11-12
Anonymous
No

I have a very simple plot script:
plot "test.csv" using 1:2 "%lf;%lf"
It is used to plot file of the form:
1;2
2;2
3;3
4;1
I cannot use the general data seperator as I have a more complex plot command with different types of input data. In version 4.4.4 this works fine.
I tested with 4.6.1 and the current CVS checkout, and both abort with the following message:
warning: Skipping data file with no valid points
^
x range is invalid
I searched around the sources and found, that the check for valid_format is not performed as the parser is currently at the "u" of using, not recognizing the format string at that point (src/datafile.c line 1399 and following). The documentation states that the above plot command is valid.

Discussion

  • Ethan Merritt
    Ethan Merritt
    2012-11-12

    I will look into it.
    Meanwhile, if it helps any, it works if you leave out the explicit columns:

    plot "test.csv" using "%lf;%lf"

     
  • Ethan Merritt
    Ethan Merritt
    2012-11-14

    • status: open --> closed-fixed
     
  • Ethan Merritt
    Ethan Merritt
    2012-11-14

    Fixed in CVS for 4.6 and 4.7