Installing gnuplot to view plotsΒΆ

Leptonica uses gnuplot to display plots. Download the standard gnuplot Windows version (not the Windows X11 version unless you know what you are doing). Besides installing gnuplot you have to set the following environment variables:

  1. Add c:\gnuplot\bin to your system’s PATH.

  2. Create a new environment variable called GDFONTPATH and set it to c:/windows/fonts

  3. Create a new environment variable called GNUPLOT_FONTPATH and also set it to c:/windows/fonts

After showing a plot, the calling program will pause until both the plot window and gnuplot window are closed.