#163 less fatal errors for undefined values

closed-works-for-me
nobody
None
5
2007-03-15
2006-12-06
harryhooie
No

It would be nice to still get a plot in cases when all values are undefined or lie outside the axis range. A warning/notice could still be useful.

Also, when range is undefined and determined from data values, then if all data values are undefined (as often in the case of ternary if/then/else expressions that reference data columns ie. "($13):($6==1 ? $14 : 1/0)" ), perhaps the range could default to -10:10 (or 1:10 if logscale).

Discussion

  • Ethan Merritt
    Ethan Merritt
    2006-12-10

    Logged In: YES
    user_id=235620
    Originator: NO

    Could you please give a test script that shows the problem?
    The cvs version is supposed to handle the case of missing/empty/full-of-junk data files gracefully now. But this is relatively recent, and there may be cases it doesn't yet recognize.

     
  • harryhooie
    harryhooie
    2006-12-11

    Logged In: YES
    user_id=991327
    Originator: YES

    I am sorry-I have not tried the latest cvs version.
    Here is an example:
    if text.txt contains text delimited values of:
    6 1 1
    3 2 3
    5 4 5

    set terminal postscript eps
    set output "~/test.eps"
    plot "/Users/mstultin/Desktop/test.txt" using 1:($2<1 ? $3 : 1/0) with points

     
  • Ethan Merritt
    Ethan Merritt
    2007-02-11

    Logged In: YES
    user_id=235620
    Originator: NO

    Version 4.2 should handle empty files and empty data ranges gracefully, so long as there is enough information to draw a plot at all. You are asking it to draw a plot with no information whatsoever, which does not seem reasonable to me.

    Perhaps we could introduce an error return mechanism, however, so that the script itself could generate some default plot or warning gnuplot can't figure out what to do. Something like
    plot 'foo'
    if (PLOT_STATUS < 0) \ set label 999 "NO DATA PRESENT" center; plot [-10:10][-1:1] -1 notitle

     
  • Ethan Merritt
    Ethan Merritt
    2007-02-11

    • status: open --> open-works-for-me
     
  • Ethan Merritt
    Ethan Merritt
    2007-03-15

    • status: open-works-for-me --> closed-works-for-me