[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Plottin noncontinuous / non linear data
- Subject: Plottin noncontinuous / non linear data
- From: Heikki Vesalainen <hvesalai(at)I.hate.spam>
- Date: Mon, 09 Feb 1998 22:16:17 -0800
- Distribution: inet
- Newsgroups: comp.graphics.apps.gnuplot
- Organization: Helsinki University of Technology
- Xref: news.doit.wisc.edu comp.graphics.apps.gnuplot:9368
Hi everyone!
I don't know how to explain this, but I'll try...
I made two pictures to help illustrate what I mean. They are:
http://www.hut.fi/~hvesalai/this_is_what_it_does.gif and
http://www.hut.fi/~hvesalai/this_is_what_i_want.gif
Here we go: Is there anyway to make gnuplot scale the axess so that
noncontinuous data would be plotted nicely (i.e there would be a gap or
a leap in the axes values)?
Let's clear things up by a little example:
Say we have the following data:
x y
02/02_12:10 14
02/02_12:11 15
02/02_12:12 17
02/02_12:13 18
02/02_12:14 15
02/02_12:15 16
02/02_12:16 17
02/02_12:17 17
02/02_12:18 18
02/02_12:19 16
03/02_12:10 17 <--- note the gap in the first (x) value
03/02_12:11 18
03/02_12:12 20
03/02_12:13 23
03/02_12:14 24
03/02_12:15 25
03/02_12:16 26
03/02_12:17 27
03/02_12:18 28
03/02_12:19 29
now if I put that in one datafile and plot it with the following
commands:
set xdata time
set timefmt '%d/%m_%H:%M'
set data style line
plot 'data' using 1:2
the result will be a picture with x-axes values:
2/2 2/2 2/2 2/2 3/2 3/2 3/2 3/2 3/2 3/2
12:00 15:00 18:00 21:00 00:00 03:00 06:00 09:00 12:00 15:00.
but what I would want is that the x-axes would have values something
like:
2/2 2/2 2/2 2/2 2/2 * 3/2 3/2 3/2 3/2 3/2
12:10 12:12 12:14 12:16 12:18 * 12:10 12:12 12:14 12:16 12:18
with the * meaning that there is a gap in the axes values..
Hmm... please see the pictures, I think my message will be quite clear
when you see them...
ps. It would be nice if you could reply to me by email
Heikki Vesalainen
wes @ clinet.fi