LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-07-2007, 03:31 PM   #1
datasink
Member
 
Registered: Nov 2005
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
gnuplot 4.2 no png, jpg or gif terminals


I am using gnuplot under ubuntu. The latest version of gnuplot installed in 4.2. This version gives capabilities for histograms. However, I discovered that I can't do a 'set terminal png'. I can do this in gnuplot 4.0.

I'm not sure what the terminology is but there doesn't seem to be drivers in this version for those filetypes. Any idea how I get a version 4.2 with png, jpg, and gif capabilities?
 
Old 02-07-2007, 06:24 PM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
I use gnuplot every day, that's surprising.
Last time I compiled manually gnuplot to have the font functionnality. Did you compile it yourself (I guess since 4.0 is the latest stable) and if yes, did you include the support for png when running ./configure?

Interactivly you can get the list of terminal by typing
>set terminal

I'll check my version and terminals cause I don't have full access now.

Do you need 4.2 for particular reasons? Its a bit bleeding edge...

Also this might give you info (not sure actually lol):
http://www.gnuplot.info/docs_4.1/node387.html#png

I generaly use terminal eps
 
Old 02-08-2007, 06:37 AM   #3
datasink
Member
 
Registered: Nov 2005
Distribution: Ubuntu
Posts: 36

Original Poster
Rep: Reputation: 15
No, I didn't compile it. I used synaptic to get it an install it. png is not a valid option on set terminal in this version. It works on 4.0 however.

I guess I don't really need 4.2. I'm trying to create bar graphs with custom text tic labels under each bar and simply can't figure out the documentation on it. 4.2 has histograms for the first time and that seems like something useful.

What I am trying to do is use a perl script to read savings fund values from a database and create a vertical bar for each fund. The name of the fund needs to be below the bar. I've generated plots for years but have always worked with line graphs.

Is there a gnuplot forum somewhere where things like this are discussed?

thanks,

bob
 
Old 02-08-2007, 07:27 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by datasink
No, I didn't compile it. I used synaptic to get it an install it. png is not a valid option on set terminal in this version. It works on 4.0 however.
I'm using debian, I just pulled gnuplot from experimental.
Typing
>set terminal
lists png here.
So I guess it was not well compiled by ubuntu team (or you don't have the libraries libgd2* which I doubt if it works for 4.0)
Recompile it yourself or grab it from debian or use the 4.0

There is an unofficial faq which is not bad.
Haven't seen any forum.

Have you looked on gnuplot examples on their official website?
 
Old 04-26-2007, 10:13 AM   #5
sundol
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
try this.

sudo aptitute install libgd2-xpm-dev

then install gnuplot from source file

Last edited by sundol; 04-26-2007 at 10:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
png to gif in linux? jon_k Linux - Software 4 05-25-2010 09:01 PM
Converting .png to .jpg GtkUser Linux - Software 9 04-17-2007 02:04 PM
CMD line tool for PDF -> HTML or JPG/PNG/GIF ilhbutshm Linux - Software 5 10-23-2004 04:18 AM
How to export graph as JPG file in Gnuplot ninja Linux - Software 1 05-30-2003 09:20 AM
pnp to png or jpg illtbagu Linux - Newbie 1 01-26-2003 03:08 PM


All times are GMT -5. The time now is 05:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration