Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

regarding png terminal missing in gnuplot

1,961 views
Skip to first unread message

anjaliac...@gmail.com

unread,
Mar 16, 2015, 7:31:58 AM3/16/15
to
Hi

i need to use png terminal.But it is giving error message when i did:

gnuplot> set terminal png
Terminal type set to 'unknown'
^
unknown or ambiguous terminal type; type just 'set terminal' for a list





gnuplot> set terminal

Available terminal types:
canvas HTML Canvas object
cgm Computer Graphics Metafile
context ConTeXt with MetaFun (for PDF documents)
corel EPS format for CorelDRAW
dumb ascii art for anything that prints text
dxf dxf-file for AutoCad (default size 120x80)
eepic EEPIC -- extended LaTeX picture environment
emf Enhanced Metafile format
emtex LaTeX picture environment with emTeX specials
epslatex LaTeX picture environment using graphicx package
fig FIG graphics language for XFIG graphics editor
gpic GPIC -- Produce graphs in groff using the gpic preprocessor
hp2623A HP2623A and maybe others
hp2648 HP2648 and HP2647
hpgl HP7475 and relatives [number of pens] [eject]
imagen Imagen laser printer
latex LaTeX picture environment
mf Metafont plotting standard
mif Frame maker MIF 3.00 format
mp MetaPost plotting standard
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
Press return for more:
postscript PostScript graphics, including EPSF embedded files (*.eps)
pslatex LaTeX picture environment with PostScript \specials
pstex plain TeX with PostScript \specials
pstricks LaTeX picture environment with PSTricks macros
qms QMS/QUIC Laser printer (also Talaris 1200 and others)
regis REGIS graphics language
svg W3C Scalable Vector Graphics driver
tek40xx Tektronix 4010 and others; most TEK emulators
tek410x Tektronix 4106, 4107, 4109 and 420X terminals
texdraw LaTeX texdraw environment
tgif TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]]
tkcanvas Tk/Tcl canvas widget [perltk] [interactive]
tpic TPIC -- LaTeX picture environment with tpic \specials
unknown Unknown terminal type - not a plotting device
vttek VT-like tek40xx terminal emulator
x11 X11 Window System
xlib X11 Window System (gnulib_x11 dump)
xterm Xterm Tektronix 4014 Mode




Someone please tell me how can i make gnuplot suitable for png plot.
The gnuplot which i am using now is:

G N U P L O T
Version 4.6 patchlevel 6 last modified September 2014
Build System: Linux i686

Karl

unread,
Mar 16, 2015, 9:19:36 AM3/16/15
to
Your gnuplot build has neither the png nor the pngcairo terminal
compiled into it. It looks like a rather minimal build, did you compile
it yourself?

You need to install the headers files for libgd (for png, jpeg, gif)
and/or libcairo/libpango (for pngcairo etc.) first. (named ##-dev in
most distributions.) Then rerun ./configure, the summary on the last
page tells you if all necessary libraries for the respective terminals
have been found. make, make install, you get it.

If it came with your distribution (which one?), you probably picked the
minimal X11-only gnuplot build or so. Check if there's another one
available in your package manager.

Karl

Anjali Chawla

unread,
Mar 16, 2015, 11:56:30 AM3/16/15
to
Thanks for the reply.

Earlier i have installed gnuplot by downloading "gnuplot-4.6.6" and following this "https://techtravelo.wordpress.com/2013/10/04/gnuplot-in-ubuntu-12-04-installing/" post.


Now i have uninstalled it by "make uninstall".
when i gave
$ gnuplot its showing:




The program 'gnuplot' can be found in the following packages:
* gnuplot-nox
* gnuplot-x11
Try: sudo apt-get install <selected package>



Now please tell me how should i install gnuplot so that it will have png support?
Please tell me complete procedure because i am not all good in linux.

Karl

unread,
Mar 16, 2015, 12:23:18 PM3/16/15
to
Am 16.03.2015 um 16:56 schrieb Anjali Chawla:
> Thanks for the reply.
>
> Earlier i have installed gnuplot by downloading "gnuplot-4.6.6" and following this "https://techtravelo.wordpress.com/2013/10/04/gnuplot-in-ubuntu-12-04-installing/" post.
>

You very nearly succeded. You only have to install the developer library
packages mentioned in the end of that page before running "./configure
&& make && make install". But nevermind ...

> The program 'gnuplot' can be found in the following packages:
> * gnuplot-nox
> * gnuplot-x11
> Try: sudo apt-get install <selected package>
>
> Now please tell me how should i install gnuplot so that it will have png support?
> Please tell me complete procedure because i am not all good in linux.
>

Installing the package supplied by Ubuntu is certainly the simplest
solution. gnuplot-x11 also has the interactive wxt/qt terminals compiled
in, i guess you want that.

Just

sudo apt-get install gnuplot-x11

and give your password. If you have sudo rights. Otherwise you need to
get hold of your admin anyway, because you then also cannot install the
developer library packages mentioned above to compile it yourself.

Karl

Anjali Chawla

unread,
Mar 16, 2015, 1:04:36 PM3/16/15
to

hey thanks by "sudo apt-get install gnuplot-x11"
it has png terminal.

But can you tell me how can i copy it to "/usr/local/bin"?
Because where i need this png terminal it is showing now :



ns: finish: couldn't execute "/usr/local/bin/gnuplot": no such file or directory
while executing
"exec $gnuplot_app_path_ -persist [$self command-filename $graph] &"
(procedure "_o14" line 11)
(gnuplot protected-plot-after-command-file line 11)
invoked from within
"$low_level_plotter_ protected-plot-after-command-file $graph"
(procedure "_o13" line 32)
(postscript protected-plot line 32)
invoked from within
"$self protected-plot $graph"
(procedure "_o13" line 7)
(PlotDevice plot line 7)
invoked from within
"$plot_device plot $self"
(procedure "_o736" line 19)
(Graph display line 19)
invoked from within
"$util_graph_fwd_($i) display"
(procedure "_o12" line 59)
(Create_graph finish line 59)
invoked from within
"$graph finish"
(procedure "finish" line 9)
invoked from within
"finish"


Can you please help further?

Karl

unread,
Mar 16, 2015, 2:06:33 PM3/16/15
to
Am 16.03.2015 um 18:04 schrieb Anjali Chawla:
>
> hey thanks by "sudo apt-get install gnuplot-x11"
> it has png terminal.
>
> But can you tell me how can i copy it to "/usr/local/bin"?
> Because where i need this png terminal it is showing now :

You better change that variable $gnuplot_app_path to be
"/usr/bin/gnuplot", instead of "/usr/local/bin..."

What kind of a program is that?

Karl

Anjali Chawla

unread,
Mar 16, 2015, 2:24:58 PM3/16/15
to


Actually its a tool NS2(NetworkSimulator 2).
And i don't where it is taking "/usr/local/bin".
After running it just shows that message.

Anjali Chawla

unread,
Mar 17, 2015, 12:47:19 AM3/17/15
to
Hi

should i need to do path setting like "export PATH=/usr/bin:$PATH" or in "bash" file ?
0 new messages