cdck generated plot-file can't read from gnuplot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cdck (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cdck
o I've burned a CD-RW (4x) with two files (with CD/DVD Creater from Nautilus)
o Now I opened a gnome -terminal and typing the following and press [Enter]:
cdck
---
Reading sectors 1-302800
302800 ok
CD overall:
Sectors total: 302800:
Good sectors: 302800:
Bad sectors (incl. with poor timing): 0
CD timings:
Minimal = 2 usec (0.000002s)
Maximal = 181271 usec (0.181271s)
Average = 776 usec (0.000776s)
Conclusion:
Satisfactory disc
---
I've read in the manual page of cdck, that I can save the result in a dat-file to represent it with gnuplot.
But the generated dat-file can't read from gnuplot.
o Now I opened a gnome -terminal and typing the following and press [Enter]:
cdck -p
ProblemType: Bug
Architecture: i386
Date: Fri Nov 6 16:28:27 2009
Dependencies:
libgcc1 1:4.2.4-1ubuntu4
gcc-4.2-base 4.2.4-1ubuntu4
libc6 2.7-10ubuntu5
DistroRelease: Ubuntu 8.04
Package: cdck 0.6.0-1
PackageArchitec
ProcEnviron:
PATH=/
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: cdck
Uname: Linux 2.6.24-25-386 i686
On Fri, 06 Nov 2009 15:40:15 -0000, Lödur wrote:
> I've read in the manual page of cdck, that I can save the result in a dat-file to represent it with gnuplot.
> But the generated dat-file can't read from gnuplot.
>
> o Now I opened a gnome -terminal and typing the following and press [Enter]:
> cdck -p
And then?
My guess:
* You got the file cdck-plot.dat~
* You ran `gnuplot cdck-plot.dat~' and got:
#v+ belanna: /tmp$ gnuplot cdck-plot.dat~
gregoa@
0 9
^
"cdck-plot.dat~", line 2: invalid command
gregoa@ belanna: /tmp$
#v-
After reading a bit about gnuplot it seems that this is not the way
to actually plot a datafile. What works for me is (plot.dat is a
shortened version of your cdck-plot.dat~):
#v+ belanna: /tmp$ gnuplot
gregoa@
G N U P L O T
Version 4.2 patchlevel 6
last modified Sep 2009
System: Linux 2.6.31.200910290028
Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009
Thomas Williams, Colin Kelley and many others
Type `help` to access the on-line reference manual. www.gnuplot. info/faq/
The gnuplot FAQ is available from http://
Send bug reports and suggestions to <http:// sourceforge. net/projects/ gnuplot>
Terminal type set to 'wxt' belanna: /tmp$
gnuplot> plot "plot.dat"
[enjoy plot]
gnuplot> q
gregoa@
#v-
Another option would be to add
plot '-'
as the first line of the datafile and
end
pause -1
at the end, then `gnuplot plot.dat' also works; but I'm nor sure the
"pause -1" is what's wanted in each case.
IMO there is no real bug in cdck, but I cann add a note to the manpage
about how to use the datafile.
Cheers, info.comodo. priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06 www.debian. org/ got.to/ quote/
gregor (cdck maintainer in Debian)
--
.''`. http://
: :' : Debian GNU/Linux user, admin, & developer - http://
`. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://
`- NP: Spider Murphy Gang: Rock'n Roll Maschin'