Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1111
| From | bryan <bryanlepore@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | time format and xrange or missing data "." |
| Date | 2012-05-15 10:15 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <11080488.2800.1337102142460.JavaMail.geo-discussion-forums@ynmb39> (permalink) |
[ gnuplot 4.6 patchlevel 0 ]
trying to understand use of 'set xdata time' vis-a-vis the following points:
I would like to set xrange longer than the available data. I used a "." to mark missing data points. I can plot the first field (see below) using a conventional x/y data setup and various xranges (not shown). however when using 'set xdata time' it appears that this will not work. Note that I have the date in field 2, but this shouldn't matter I think. here are the commands:
gnuplot> set xdata time ; set timefmt '%m-%Y' ; set format x '%b'
gnuplot> plot 'data.dat' u 2:1 w lp
( ... looks OK ...)
gnuplot> set xrange [0:14]
gnuplot> replot
gnuplot> plot 'data.dat' u 2:1 w lp
all points y value undefined!
gnuplot> show xrange
set xdata time
set xrange [ * : * ] noreverse nowriteback # (currently ["10-2011":"05-2012"] )
data.dat:
8.38 11-2011
1.58 12-2011
3.13 01-2012
9.74 02-2012
2.78 03-2012
6.51 04-2012
4.43 05-2012
. 06-2012
. 07-2012
. 08-2012
. 09-2012
. 10-2012
. 11-2012
. 12-2012
-Bryan
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
time format and xrange or missing data "." bryan <bryanlepore@gmail.com> - 2012-05-15 10:15 -0700
Re: time format and xrange or missing data "." Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-05-15 19:52 +0200
Re: time format and xrange or missing data "." bryan <bryanlepore@gmail.com> - 2012-05-15 11:14 -0700
csiph-web