Installing gnuplot on Windows

[updated Sep 2012]

If you are still stuck with using windows for whatever reason, don’t despair you can still use gnuplot to plot your graphs! You can get gnuplot from the gnuplot project page on sourceforge.

Browse versions to go to directory with latest updates.

Download gp443win32.zip (or latest version) which is a self extracting zip file, click on it and follow the instructions. (you don’t need to have winzip installed). You just have to copy the files to a directory on your computer, then make a shortcut to wgnuplot.

It is also useful to install ghostview, you need gs860w32.exe and gs49w32.exe (or higher?) which allows you to view postscript graphs made with gnuplot, you can copy from ghostview to the windows clipboard to insert into your word document if you so desire.

Instructions for installing ghostview can be found here;
http://pages.cs.wisc.edu/~ghost/gsview/

Advertisements

11 Responses

  1. I found an alternative way which also works, installing cygwin. Cygwin allows you to have a bash shell on windows, and also enables x11 protocal for drawing xwindows. On top of the base install, in the setup, you can select gnuplot, gcc c compiler, as well as fortran compilers g77 and gfortran, as well as lots of other GPL/free software goodies.

    • how to run gnuplot in cygwin.I have installed gnuplot also from cygwin setup but still it shows an error
      gnuplot: unable to open display’ ‘
      gnuplot:x11 aborted

      • I can’t test right now but I assume that it should be possible to run
        gnuplot inside the standard cygwin terminal.

        Does this error occur when you first start gnuplot with “gnuplot”
        command at terminal, or later when you try to plot graph? In later case
        it should still be possible to use other output terminal types of
        gnuplot using “set terminal postscript” or “set terminal svg” for
        example.

        If you want to use X11 terminal type output for gnuplot you need to
        start an X11 terminal in cygwin (which requires that you have X11
        installed, and that the x11 server is started).

  2. I just

    1. downloaded
    2. unzipped
    3. executed wgnuplot.exe

    It works. Simple enough for me.

    Cheers!!

  3. Well if you had read my instructions it would have worked even better!

  4. thanks worked perfectly

  5. The zip file you mention is not a self extracting file – its just a zip.

  6. Thanks, Installing worked ok, but I’m having trouble running gnuplot from a bat file on win xp from cmd.

    What I want it to do, as part of other stuff, is to plot a graph of data from a file (c:\plot.dat) in a window and to continue the bat file. What happens is I keep getting the gnuplot prompt and the bat file stops until I type quit.

    I’m guessing that there is extra parameter(s) needed when calling gnuplot from a bat file – btw should I use wgnuplot?

    I’m using c:\gnuplot\binary\gnuplot plot ‘c:\plot.dat

    Anyone any ideas?

    TIA

    John

  7. Appears that these days they “might” have a one click installer XXXX-setup.exe also available.

  8. Yeah looks like that can be found at http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.0/ and I guess later versions. Anyone tried the gp460-win32-setup.exe file?

  9. […] die .zip Datei (einfach Doppelklick drauf), und der Rest sollte sich von selbst ergeben, wenn man dieser Seite glaubt. Ich bin auf Ubuntu und brauchte nur sudo apt-get install gnuplot im Terminal anzugeben. Mac […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: