Search code examples
initializationcygwingnuplot

Error during initialization gnuplot with cygwin (terminal wxt)


I get an error, when I try to start gnuplot via cygwin (see below): Gnuplot does not seem to know the wxt-term, but according to this page (https://cygwin.com/pipermail/cygwin-announce/2020-July/009620.html), gnuplot should be able to know it.

After this I can use gnuplot by hand, e.g. typing in comments and it works normal. But usually a have automatic plot programs and the error will cause the program to crash, so I can't work with it properly.

Is there any way to force gnuplot to ignore the error? Or can I start gnuplot directly with a certain terminal (e.g. png)?

Thanks Sandra

$ gnuplot

        G N U P L O T
        Version 5.4 patchlevel 0    last modified 2020-07-13

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

        gnuplot home:     http://www.gnuplot.info
        faq, bugs, etc:   type "help FAQ"
        immediate help:   type "help"  (plot window: hit 'h')

Terminal type is now 'unknown'

set term wxt
         ^
unknown or ambiguous terminal type; type just 'set terminal' for a list

WARNING: Error during initialization

gnuplot>```

Solution

  • Not tested but I suspect you need to use the gnuplot-wx package as there are several gnuplot packages:

    gnuplot-base    A command-line driven interactive function plotting utility
    gnuplot-doc A command-line driven interactive function plotting utility
    gnuplot-qt5 A command-line driven interactive function plotting utility
    gnuplot-wx  A command-line driven interactive function plotting utility
    gnuplot-X11 A command-line driven interactive function plotting utility
    

    https://cygwin.com/packages/summary/gnuplot-wx.html