Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Syntax for set terminal png

Help
2005-09-04
2013-02-10
  • mkalinowski
    mkalinowski
    2005-09-04

    I have two installations of gnuplot my fedora core 4 system.
    One of them was installed before I upgraded to FC4.
    At that time (I do not remember what version of Linux I was running)
    I downloaded gnuplot an installed manually.
    Second installation conveniently came with FC4.
    First resides in /usr/local/bin
    second in /usr/bin

    Both on the opening claim Version 4.0 patchlevel 0

    /usr/local/bin ======================================================

            G N U P L O T
            Version 4.0 patchlevel 0
            last modified Thu Apr 15 14:44:22 CEST 2004
            System: Linux 2.6.11-1.1369_FC4

            Copyright (C) 1986 - 1993, 1998, 2004
            Thomas Williams, Colin Kelley and many others

            This is gnuplot version 4.0.  Please refer to the documentation
            for command syntax changes.  The old syntax will be accepted
            throughout the 4.0 series, but all save files use the new syntax.

            Type `help` to access the on-line reference manual.
            The gnuplot FAQ is available from
                    http://www.gnuplot.info/faq/

            Send comments and requests for help to
                    <gnuplot-info@lists.sourceforge.net>
            Send bugs, suggestions and mods to
                    <gnuplot-bugs@lists.sourceforge.net>

    /usr/bin ============================================================

            G N U P L O T
            Version 4.0 patchlevel 0
            last modified Thu Apr 15 14:44:22 CEST 2004
            System: Linux 2.6.11-1.1369_FC4

            Copyright (C) 1986 - 1993, 1998, 2004
            Thomas Williams, Colin Kelley and many others

            This is gnuplot version 4.0.  Please refer to the documentation
            for command syntax changes.  The old syntax will be accepted
            throughout the 4.0 series, but all save files use the new syntax.

            Type `help` to access the on-line reference manual.
            The gnuplot FAQ is available from
                    http://www.gnuplot.info/faq/

            Send comments and requests for help to
                    <gnuplot-info@lists.sourceforge.net>
            Send bugs, suggestions and mods to
                    <gnuplot-bugs@lists.sourceforge.net>

    =====================================================================
    first accepts the following syntax for set terminal png command:

    set terminal png medium size 640 480

    The second does not:

    gnuplot> set terminal png medium size 640 480
    Terminal type set to 'png'
                                     ^
             expecting: {small, medium, large},[no]transparent, or {monochrome, gray
    , color, [xRRGGBB] }

    it insist on syntax:

    set terminal png medium color picsize 640 480
     

    In addition to that I have a win32 installation (on different machine)
    which also claims to be Version 4.0 patchlevel 0

    ======================================================================

            G N U P L O T
            Version 4.0 patchlevel 0
            last modified Thu Apr 15 14:44:22 CEST 2004
            System: MS-Windows 32 bit

            Copyright (C) 1986 - 1993, 1998, 2004
            Thomas Williams, Colin Kelley and many others

            This is gnuplot version 4.0.  Please refer to the documentation
            for command syntax changes.  The old syntax will be accepted
            throughout the 4.0 series, but all save files use the new syntax.

            Type `help` to access the on-line reference manual.
            The gnuplot FAQ is available from
                    http://www.gnuplot.info/faq/

            Send comments and requests for help to
                    <gnuplot-info@lists.sourceforge.net>
            Send bugs, suggestions and mods to
                    <gnuplot-bugs@lists.sourceforge.net>    
    ======================================================================
    This one likes only:

    set terminal png medium size 640 480

    and does not accept the syntax:

    set terminal png medium color picsize 640 480

    ======================================================================
    gnuplot> set terminal png medium color picsize 640 480
    Terminal type set to 'png'
                                     ^
             invalid color spec, must be xRRGGBB         
    ======================================================================

    Does anybody has a logical explanation for all this?
    What is correct syntax for Version 4.0 patchlevel 0 ?
    Is one of these two syntaxes obsolete? If the yes, which one?
    Why two copies of gnuplot with identical version numbers behave differently?

    Thank you

    mirek

     
    • The different versions have been built using different PNG drivers.  You can see that if you 'show version long' on each of them, and look at the compile-time options listed.

      The basic issue is that there is no such thing as a single "correct syntax for gnuplot version 4.0.0" --- there's a correct syntax for every terminal driver, but there are different ones called "png", with different syntax.