Suppose you have a grayscale bitmap (see left figure) and want to make a 3d bar graph (see right figure) out of this data using Gnuplot. The input format Gnuplot needs for this task can be found in a FAQ about Gnuplot, however the actual code to convert given data into this format is left as a homework.
What follows is the solution:
First the image has to be saved
in the plain
text PGM
graphics format
using Gimp. The PGM file
then looks like this
example: example.pgm
This PGM file can be converted using a simple C++ program
called pm3d.cpp. Asuming the compiled
binary is also named pm3d, the conversion is done
by:
./pm3d example.pgm example.dat
Now Gnuplot can be invoked to get a nice 3d plot:
gnuplot> splot "example.dat" w lines
or:
gnuplot> splot "example.dat" w pm3d
or even:
gnuplot> set view map
gnuplot> splot "example.dat" w pm3d
The Computer freezes randomly since the installation of kernel 2.6.25 and 2.6.26 didn't cure the problem. It used to be rock solid with 2.6.24.
linux, debian, crash, freeze, random, 2.6.24, 2.6.25, 2.6.26, rtc, chrony, ntp, thinkpad, t60
If you are using chrony as a ntp client you can just comment out the line beginning with rtcfile in
the /etc/chrony/chrony.conf. I haven't experienced these lookups
with ntpd.

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.
© 2006-2010 Nils Kanning, Steffen Klemer