Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

compilation de gnuplot avec png

1 réponse
Avatar
Jeannot Lelapin
Bonjour,

après plusieurs lecture du manuel pour dessiner des lines avec des
couleurs choisies, j'ai compris que j'utilisais le mauvais terminal dans
gnuplot ( postscript ).
Alors j'ai cherché sur le web le bon terminal : png on
http://gnuplot.sourceforge.net/demo_4.1/dashcolor.html

Je dois alors compiler gnuplot 4.1.
Mon système d'exploitation est macos darwin avec the development tools,

# ===================================================
# libpng
# ===================================================

tar xvzf libpng-1.2.5.tar.gz
cd libpng-1.2.5
sed 's/LDFLAGS=-L/LDFLAGS=-dynamiclib -L/' < scripts/makefile.macosx >
Makefile
make ZLIBLIB=/usr/lib ZLIBINC=/usr/include
sudo make install
sudo ranlib /usr/local/lib/libpng.a
cd ..

# ===================================================
# zlib
# ===================================================

tar xvzf zlib-1.2.2.tar.gz
cd zlib-1-2-2
./configure
make
sudo make install
sudo ranlib /usr/local/lib/libz.a
cd ..

# ===================================================
# gnuplot 4.1
# ===================================================

export CVSROOT=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gnuplot
cvs login
cvs -z3 checkout gnuplot
cd gnuplot
./prepare
./configure

==> Output in the terminal
...
checking for deflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for libpng-config... /sw/bin/libpng-config
checking for png_create_write_struct in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
....


make
sudo make install
gnuplot
gnuplot> set term png
^
unknown or ambiguous terminal type; type just 'set terminal'
for a list

zlib et libpng marche bien avec ImakeMagick6.2.6 que j'ai déjà compilé,
mais pas avec gnuplot. Je ne sais plus quoi essayer.
Je veux seulement utiliser gnuplot avec le terminal png.

Pouvez-vous m'aider ?

Jeannot Lelapin

1 réponse

Avatar
jeanpierre.libre
Jeannot Lelapin wrote:

Pouvez-vous m'aider ?


gnuplot> set term png
Terminal type set to 'png'
Options are 'nocrop medium size 640,480 '

je te conseille de réinstaller gnuplot, soit avec darwinport, soit avec
fink mais il est probable qu'un lien fait défaut sur ta version

--
jean-pierre gerbal

(inverser mon nom et libre)