LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   gnuplot 4.2 no png, jpg or gif terminals (http://www.linuxquestions.org/questions/programming-9/gnuplot-4-2-no-png-jpg-or-gif-terminals-526502/)

datasink 02-07-2007 03:31 PM

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?

nx5000 02-07-2007 06:24 PM

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

datasink 02-08-2007 06:37 AM

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

nx5000 02-08-2007 07:27 AM

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?

sundol 04-26-2007 10:13 AM

try this.
 
sudo aptitute install libgd2-xpm-dev

then install gnuplot from source file


All times are GMT -5. The time now is 12:39 PM.