From Mageia wiki
Jump to: navigation, search
$ urpmq -i gnuplot
Name        : gnuplot
Version     : 4.4.3
Release     : 2.mga1
Group       : Sciences/Other
Size        : 1454752                      Architecture: x86_64
Source RPM  : gnuplot-4.4.3-2.mga1.src.rpm
URL         : http://www.gnuplot.info/
Summary     : A program for plotting mathematical expressions and data
Description :
Gnuplot is a command-line driven, interactive function plotting program
especially suited for scientific data representation. Gnuplot can be used to
plot functions and data points in both two and three dimensions and in many
different formats.

Install gnuplot if you need a graphics package for scientific data
representation.


Important functions are currently included in the -doc package which has just been added as a hard require. In Mageia 2 those will be included in the gnuplot package itself.

In particular, /usr/share/gnuplot/4.4/PostScript/prologue.ps is needed for any postscript output.

Testing this exists during the current update, it should be confirmed to exist in Mageia 2 also, and for function.

# urpme -a gnuplot
To satisfy dependencies, the following 4 packages will be removed (6.7MB):
  gnuplot-4.4.3-1.mga1.x86_64
  gnuplot-doc-4.4.3-1.mga1.x86_64
  gnuplot-mode-4.4.3-1.mga1.x86_64
  gnuplot-nox-4.4.3-1.mga1.x86_64
Remove 4 packages? (y/N) y

# rm -rf /usr/share/gnuplot

# urpmi --no-suggests gnuplot

# ls /usr/share/gnuplot/4.4/PostScript/
ls: cannot access /usr/share/gnuplot/4.4/PostScript/: No such file or directory


After
-----
# urpmi.update --no-ignore "Core Updates Testing"
# urpmi --no-suggests gnuplot
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch
(medium "Core Updates Testing")
  gnuplot                        4.4.3        2.mga1        x86_64
  gnuplot-doc                    4.4.3        2.mga1        x86_64
2.6MB of additional disk space will be used.
1.9MB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n)y

# ls /usr/share/gnuplot/4.4/PostScript/
8859-15.ps  8859-2.ps  aglfn.txt  cp1251.ps  cp850.ps  koi8r.ps  prologue.ps
8859-1.ps   8859-9.ps  cp1250.ps  cp437.ps   cp852.ps  koi8u.ps  utf-8.ps

For testing I downloaded the correct version tarball from http://sourceforge.net/projects/gnuplot/files/gnuplot/

Extracted the demo directory and cd'd into it and did tests from here http://www.gnuplot.info/screenshots/index.html

$ gnuplot

        G N U P L O T
        Version 4.4 patchlevel 3
        last modified March 2011
        System: Linux 2.6.38.8-desktop-10.mga

        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 'wxt'
gnuplot>load "all.dem"

Pressed Return as it ran through its demos.

gnuplot> set terminal postscript color solid
Terminal type set to 'postscript'
Options are 'landscape noenhanced defaultplex \
   leveldefault color colortext \
   solid dashlength 1.0 linewidth 1.0 butt noclip \
   palfuncparam 2000,0.003 \
   "Helvetica" 14 '
gnuplot> set output "all_demos.ps"
gnuplot> load "all.dem"

Pressed Return while it did its thing again

gnuplot> quit

$ gv all_demos.ps

Shows 244 pages of graphs.


Return to the QA portal