|
From: Tatsuro M. <tma...@ya...> - 2009-12-03 00:41:42
|
Hello
I have remember the similar problem concerning Fontconfig
Case : directory name is 'bin'
gnuplot> set term png
Terminal type set to 'png'
Fontconfig error: Cannot load default config file
fontconfig: Couldn't retrieve font file name. when opening font "arial", using i
nternal non-scalable font
Options are 'nocrop medium size 640,480 '
gnuplot>
Case : directory name is 'binaries'
gnuplot> set term png
Terminal type set to 'png'
Options are 'nocrop font arial 12 size 640,480 '
gnuplot>
The fontconfig configure file 'fonts.conf' is placed ./etc/fonts, where '.' is bin.
I have performed another experiments.
I have moved 'share' and 'etc' directory to bin/..
This directory setting is usually used unix (including cygwin).
In this case, gnuplot is place in 'bin'
gnuplot> set term png
Terminal type set to 'png'
Options are 'nocrop font arial 12 size 640,480 '
gnuplot> set term post
Terminal type set to 'postscript'
Options are 'landscape noenhanced defaultplex \
leveldefault monochrome colortext \
dashed dashlength 1.0 linewidth 1.0 butt noclip \
palfuncparam 2000,0.003 \
"Helvetica" 14 '
gnuplot> set out 'test.ps'
gnuplot> plot sin(x)
gnuplot> set out
Everything goes well.
It seems that directory name 'bin' is a trigger that directory configuration is to be recognized in
unixy way.
Considering that directory name 'bin' does not cause problem on gnuplot 4.2.6, the origin of this
problem seem to lie on between 4.2 to 4.3.
In gp43-Nov21_2008-winbin, the directory name where executables are placed is 'binaries'
The problem does not appear. However, if I rename 'binaries' to 'bin',
gnuplot> set term post
Terminal type set to 'postscript'
Options are 'landscape noenhanced defaultplex \
leveldefault monochrome colortext \
dashed dashlength 1.0 linewidth 1.0 butt \
palfuncparam 2000,0.003 \
"Helvetica" 14 '
gnuplot> set out 'test.ps'
gnuplot> plot sin(x)
Can't find PostScript prologue file C:\Program Files\gp43-Nov21_2008-winbin\gnup
lot\\share/PostScript\prologue.ps
loadpath is empty
Please copy prologue.ps to one of the above directories
or set the loadpath appropriately
or set the environmental variable GNUPLOT_PS_DIR
Plot failed!
The same error occurred.
BTW, why is name of the directory changed from 'binaries' and 'bin'.
At the moment there are two ways to temporally avoid the problem
1. The name of directory where executables are placed is changed from 'bin' to other name, for example
'binaries'.
2. Keep the name 'bin' but 'share' (and 'etc') is placed the same hierarchy of 'bin' like unix.
I prefer the second. This is standard directory location for unix origin softwares (e.g. octave, GTK,
gd, ...) even on windows.
In this case, I will change the makefile
**************
GNUPLOT_PS_DIR = ../share/PostScript
:
DESTDIR = /c/Progra~1/Gnuplot4.5
BINDIR = bin
install: default
mkdir -p $(DESTDIR)
cp gnuplot.exe $(DESTDIR)/$(BINDIR)/gnuplot.exe
cp wgnuplot.exe $(DESTDIR)/$(BINDIR)/wgnuplot.exe
cp wgnuplot_pipes.exe $(DESTDIR)/$(BINDIR)/wgnuplot_pipes.exe
cp pgnuplot.exe $(DESTDIR)/$(BINDIR)/pgnuplot.exe
cp win/wgnuplot.mnu $(DESTDIR)/$(BINDIR)/wgnuplot.mnu
cp wgnuplot.hlp $(DESTDIR)/$(BINDIR)/wgnuplot.hlp
***************
Any comments ?
Regards
TatsuroI
Regards
Tatsuro
--- Tatsuro MATSUOKA wrote:
> Hello
>
> I have tested on gnuplot 4.2.6 (wgnuplot in bin directory)
>
> erminal type set to 'windows'
> gnuplot> set term post
> Terminal type set to 'postscript'
> Options are 'landscape noenhanced defaultplex \
> leveldefault monochrome colortext \
> dashed dashlength 1.0 linewidth 1.0 butt \
> palfuncparam 2000,0.003 \
> "Helvetica" 14 '
> gnuplot> set out 'test.ps'
> gnuplot> plot sin(x)
> gnuplot> set out
> gnuplot>
>
> It worked well.
>
> Hmmmm! It is mysterious.
>
> --- Tatsuro MATSUOKA wrote:
>
> > Hello
> >
> > I have met the same error that reported by Franco Fritschij
> > using gnuplot in gp440rc1_win.zip.
> >
> > See.
> >
> > Terminal type set to 'windows'
> > gnuplot> cd 'D:\usr\Tatsu\program\Gnuplot\test19'
> > gnuplot> set term post
> > Terminal type set to 'postscript'
> > Options are 'landscape noenhanced defaultplex \
> > leveldefault monochrome colortext \
> > dashed dashlength 1.0 linewidth 1.0 butt noclip \
> > palfuncparam 2000,0.003 \
> > "Helvetica" 14 '
> > gnuplot> set out 'test.ps'
> > gnuplot> plot sin(x)
> > Can't find PostScript prologue file C:\Program Files\gp44rc1win32\gnuplot\\share
> > /PostScript\prologue.ps
> > loadpath is empty
> > Please copy prologue.ps to one of the above directories
> > or set the loadpath appropriately
> > or set the environmental variable GNUPLOT_PS_DIR
> > Plot failed!
> >
> > gnuplot>
> >
> > After changing directory name 'bin' to 'binaries',
> >
> > gnuplot> set term post
> > Terminal type set to 'postscript'
> > Options are 'landscape noenhanced defaultplex \
> > leveldefault monochrome colortext \
> > dashed dashlength 1.0 linewidth 1.0 butt noclip \
> > palfuncparam 2000,0.003 \
> > "Helvetica" 14 '
> > gnuplot> set out 'test.ps'
> > gnuplot> plot sin(x)
> > gnuplot> set out
> >
> >
> > That is the problem!
> >
> > This issue might depend on the environment.
> > I tried the on window xp sp3 pro and home.
> >
> > Regards
> >
> > Tatsuro
>
>
> --------------------------------------
> Learn more about HIV/AIDS - Red Ribbon Campaign 2009
> http://pr.mail.yahoo.co.jp/redribbon/
>
--------------------------------------
Learn more about HIV/AIDS - Red Ribbon Campaign 2009
http://pr.mail.yahoo.co.jp/redribbon/
|