linespoints are shown as points

  • Elio

    i am having a problem with plots on suse and mac that does not seem to appear on ubuntu.

    plot 'file.txt' using 1:2 with linespoints
    or with lines

    seem in the first case to show only points in the second case nothing.
    Am i doing something wrong?

  • The reason for that problem is almost certainly not with the OS platform itself.  It's that your data files' line ends are broken, causing gnuplot to see blank records after every data point.  gnuplot doesn't draw connecting edges between points that have a blank record between them in the data file.

    Fix your text file format, and the problem goes away.

  • Elio

    hi thanks for your reply,

    my data is a csv file
    3, 4
    5, 6
    6, 7

    The same script i wrote worked for ubuntu,
    so what is your suggestion here what should i change?
    thanks a lot for your help.

  • It's got nothing to do with the script, the operating system, or the data.  It's the text file format that's broken.  Your data file picked up incorrect line endings while you transferred it from one platform to the other.