Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install GnuPlot on windows?

A Unix (mac/Linux) user who has been forced to work on a windows machine here :)

I have scripted loads of work in GnuPlot and don't want to switch to other programs at this moment. I would appreciate if you could help me know how to install GnuPlot On windows (more specifically windows 10). questions:

  1. I know there are two options according to this page, Cygwin and MinGW. which one is better?
  2. I have MinGW installed and I know I need to install one of the options from this page but I don't know which one(s)! and how.
  3. I have searched the internet but it seems most of the search results are for compiling. I don't want to go through compiling and all the hassle.
  4. I tried installing the binary from this link, and when I try to run the program this is the error I get:

Unable to execute file:

C:\Program Files\gnuplot\bin\wgnuplot.exe

CreatProcess failed; Code267.

The directory name is invalid.

enter image description here

I would appreciate if you could give me very simple stepwise installation (1 2 3 ...), preferably with visuals, instructions.

P.S. A nice way to install Free, Libre and Open Source Software (FLOSS) on Windows and keep them updated, is to use package managers like Chocolatey. There is a GnuPlot chocolatey package here. Just install choco as instructed here. Then use choco install Gnuplot to have the software installed.

like image 802
Foad S. Farimani Avatar asked Nov 23 '17 10:11

Foad S. Farimani


People also ask

Can you use gnuplot on Windows?

Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms.

How do I know if gnuplot is installed?

Check to see if you already have Gnuplot, by typing 'which gnuplot' in a shell window. If Gnuplot is installed, you need to make sure that it is version 4.0 or newer ('gnuplot --version').

How do I start gnuplot?

To start gnuplot under MS Windows, double-click on the gnuplot icon. The gnuplot window will pop up with menus and buttons along the top, the opening message and the gnuplot> prompt inside the window. To start gnuplot under OS/2, open the folder where gnuplot is located, and double click on the gnuplot icon.

Is gnuplot a software?

The gnuplot is a well known software for graph plotting in the field of science and engineering. It is a command based software originally built for Linux environment, however now it's available for other operating systems too.


1 Answers

You don't have to install MinGW or Cygwin. Actually packages compiled in MinGW are compatible with Windows. Just download the binary of gnuplot from Their repo and you are good to go.

Additional points:

  • When installing, check which terminals you want to set up; also check if you want the installer to add the PATH variable to your system. Also, create a desktop shortcut.
  • After installation, you should see the desktop shortcut. Clicking on it should open a terminal-based gnuplot (which hopefully you are familiar with).

Please note that I have used the x11 terminal (you can get this working by installing xming). There are other options such as windows and qt terminals, but I am not an expert on using these.

like image 116
Ptheguy Avatar answered Oct 05 '22 02:10

Ptheguy