Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1256

Re: plotting csv data with some empty regions

From antar3s86@gmail.com
Newsgroups comp.graphics.apps.gnuplot
Subject Re: plotting csv data with some empty regions
Date 2012-07-09 05:40 -0700
Organization http://groups.google.com
Message-ID <f13e41ea-4769-45f7-997b-28ce0521d315@googlegroups.com> (permalink)
References <4da4658a-e464-4abb-bb5f-d13b3494d958@googlegroups.com>

Show all headers | View raw


Am Montag, 9. Juli 2012 08:22:34 UTC+2 schrieb adam....@gmail.com:
> I was hoping to do a line plot for some time-domain data that looks something like this:
> 
> 1,,
> 3,,
> 4,,
> 2,,
> 3,,
> 4,1,5
> 2,2,7
> 3,1,
> 2,1,
> 5,,
> 
> With:
> plot 'stuff.csv' with lines
> 
> I get the first column fine.
> 
> Let's try:
> plot 'stuff.csv' using 1:3 with lines
>                                 ^
>          warning: Skipping data file with no valid points
>                                                    ^
>          x range is invalid
> 
> I am hoping for something that will start plotting the other lines when they become relevant, and stops plotting them as their data regions go stale again.  Is this readily possible?  I had pondered just popping in zeroes, but in the expanded set this becomes horrific to read; the chops when it transitions to/from zero make the plots useless.

You have to tell gnuplot what kind of separator you use:

set datafile separator ","

There you go ;)

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

plotting csv data with some empty regions adam.preble@gmail.com - 2012-07-08 23:22 -0700
  Re: plotting csv data with some empty regions antar3s86@gmail.com - 2012-07-09 05:40 -0700
    Re: plotting csv data with some empty regions adam.preble@gmail.com - 2012-07-10 07:12 -0700
      Re: plotting csv data with some empty regions sfeam <sfeam@users.sourceforge.net> - 2012-07-10 12:28 -0700

csiph-web