I recently installed gnuplot's last version on ubuntu 10 and something
is not working properly. I am not able to use colors on my plots at
all.
I tried to set term x11, but it doesn't exist. I fact I couldn't set
it to anything familiar to me. So I learned that .eps rocks and used
set term postscript and then set out "graph.eps". Then I plotted my
data with something like
plot "data.dat" u 1:2 w l, "data.dat" u 1:3 w l
but I get a continuous line and a dash-dot line !!
I'm sure it must be possible to plot in different colors. In fact at
university, where I learned to use gnuplot, we used colors and also
plotted to a window, which is something I also miss now.
Thanks for you help in advance,
Fran
Ubuntu packages the x11 terminal separately in a package called
'gnuplot-x11'. It's possible that you've managed to install the
package 'gnuplot-nox' only. There is a meta-package called simply
'gnuplot', which contains both packages (plus the documentation, thus
equaling a complete installation).
By the way, the default interactive terminal nowadays is 'wxt', which
is nicer and has more features than the x11 terminal.
Also note that Ubuntu 10.04 doesn't have the latest version of
gnuplot, unless you use third party repositories.
The version offered by their package management system is 4.2.6, while
the latest official gnuplot version is 4.4.0.
The postscript terminal is monochrome by default, because many people
use it for creating figures for scientific journals, and color
printing is usually more expensive in that case (in any case,
generally). See 'set term post color' to override.
Péter Juhász
however, I feel curious about weather I installed gnuplot-nox or
gnuplot or what, and about using term wxt, which I don't know how to
install and use.
maybe I should considere to reinstall everything and that would be
easier...dont know
sorry for my newbie questions, actually I'm just starting to learn
about linux itself, so not really sure about what I do sometimes
thanks again,
Fran
Francesc wrote:
>
> however, I feel curious about weather I installed gnuplot-nox or
> gnuplot or what, and about using term wxt, which I don't know how to
> install and use.
When you start gnuplot, it should tell you which version it is and which
terminal it uses, something like:
G N U P L O T
Version 4.2 patchlevel 2
last modified 31 Aug 2007
System: Linux 2.6.26-2-686
Copyright (C) 1986 - 1993, 1998, 2004, 2007
Thomas Williams, Colin Kelley and many others
Type `help` to access the on-line reference manual.
The gnuplot FAQ is available from http://www.gnuplot.info/faq/
Send bug reports and suggestions to
<http://sourceforge.net/projects/gnuplot>
Terminal type set to 'wxt'
gnuplot>
Christoph
Hi Christoph,
This is what I get:
G N U P L O T
Version 4.4 patchlevel 0
last modified March 2010
System: Linux 2.6.32-22-generic
Copyright (C) 1986-1993, 1998, 2004, 2007-2010
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help seeking-assistance"
immediate help: type "help"
plot window: hit 'h'
Terminal type set to 'unknown'
and when I say set term, I get this:
Available terminal types:
canvas HTML Canvas object
cgm Computer Graphics Metafile
corel EPS format for CorelDRAW
dpu414 Seiko DPU-414 thermal printer [small medium large]
dumb ascii art for anything that prints text
dxf dxf-file for AutoCad (default size 120x80)
eepic EEPIC -- extended LaTeX picture environment
emf Enhanced Metafile format
emtex LaTeX picture environment with emTeX specials
epslatex LaTeX picture environment using graphicx package
epson_180dpi Epson LQ-style 180-dot per inch (24 pin) printers
epson_60dpi Epson-style 60-dot per inch printers
epson_lx800 Epson LX-800, Star NL-10, NX-1000, PROPRINTER ...
fig FIG graphics language for XFIG graphics editor
gpic GPIC -- Produce graphs in groff using the gpic
preprocessor
hp2623A HP2623A and maybe others
hp2648 HP2648 and HP2647
hp500c HP DeskJet 500c, [75 100 150 300] [rle tiff]
hpdj HP DeskJet 500, [75 100 150 300]
hpgl HP7475 and relatives [number of pens] [eject]
hpljii HP Laserjet series II, [75 100 150 300]
Press return for more:
hppj HP PaintJet and HP3630 [FNT5X9 FNT9X17 FNT13X25]
imagen Imagen laser printer
latex LaTeX picture environment
mf Metafont plotting standard
mif Frame maker MIF 3.00 format
mp MetaPost plotting standard
nec_cp6 NEC printer CP6, Epson LQ-800 [monocrome color
draft]
okidata OKIDATA 320/321 Standard
pbm Portable bitmap [small medium large] [monochrome
gray color]
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many
options)
postscript PostScript graphics, including EPSF embedded files
(*.eps)
pslatex LaTeX picture environment with PostScript \specials
pstex plain TeX with PostScript \specials
pstricks LaTeX picture environment with PSTricks macros
qms QMS/QUIC Laser printer (also Talaris 1200 and
others)
regis REGIS graphics language
starc Star Color Printer
svg W3C Scalable Vector Graphics driver
tandy_60dpi Tandy DMP-130 series 60-dot per inch graphics
tek40xx Tektronix 4010 and others; most TEK emulators
tek410x Tektronix 4106, 4107, 4109 and 420X terminals
texdraw LaTeX texdraw environment
Press return for more:
tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]]
tkcanvas Tk/Tcl canvas widget [perltk] [interactive]
tpic TPIC -- LaTeX picture environment with tpic
\specials
unknown Unknown terminal type - not a plotting device
vttek VT-like tek40xx terminal emulator
xterm Xterm Tektronix 4014 Mode
(sorry for the long post)
It seems that there are a lot missing, doesn't it? just thinking about
pdf, jpeg, png...
Maybe I didn't installed gnuplot properly...
> I recently installed gnuplot's last version on ubuntu 10
Installed --- how? Did you compile it yourself, or install a binary
package made by the distributor (or somebody else)?
I'll assume that you built from source because a) previous replies
already covered the other case, and b) "terminal unknown" at startup
should never happen with any self-respecting distributor's gnuplot
package...
> I tried to set term x11, but it doesn't exist.
That happens if you don't have the development packages for X11
installed (x11-devel or whatever Ubuntu calls them).
> I fact I couldn't set it to anything familiar to me.
So you're missing even more development packages.
Generally, to build your own, full-featured gnuplot executable, you need
a pretty wide selection of already installed third-party libraries and
tools. And you need them all in the "for developers of programs using
this package" variant, not just the "for users of programs using this
package" one.