Ignore points with y=0

后端 未结 2 1148
盖世英雄少女心
盖世英雄少女心 2020-12-29 10:45

I am plotting a graph and I would like to omit all points that have y=0. I don\'t know a priori at which lines these results appear, so I can\'t tell gnuplot to use just som

2条回答
  •  北海茫月
    2020-12-29 11:41

    The elegant way to do that is using:

    set datafile missing

    For example, you can do:

    set datafile missing '0'

    and gnuplot will skip the entries with the 0 symbol. You can use strings as well as NaN or 0.000.

提交回复
热议问题