gnuplot

Overview

  • gnuplot: A portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms.

Using

Use the module name gnuplot to discover versions available and to load the application.

Terminal Type:

By default, when you start gnuplot it sets the terminal to qt.

[@blog1 ~]$ gnuplot G N U P L O T Version 5.4 patchlevel 5 last modified 2022-09-28 Copyright (C) 1986-1993, 1998, 2004, 2007-2022 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 'qt''

Depending on what you are using gnuplot for, this might cause issues. For example, if using an interactive desktop via SouthPass, using say plot sin(x) will fail. The terminal needs to be set to use x11. There are two ways to do this:

Option 01: From the gnuplot command line:

gnuplot> show t terminal type is qt 0 font "Sans,9" gnuplot> set term x11 Terminal type is now 'x11' Options are ' nopersist enhanced' gnuplot> show t terminal type is x11 nopersist enhanced

Option 02: Create a .gnuplot file in your home folder, containing:

[salexan5@blog1 ~]$ cat .gnuplot set term x11

then when you start gnuplot: