LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2008, 02:08 PM   #1
~Linux_user~
LQ Newbie
 
Registered: Oct 2007
Location: Bryansk, Russia
Distribution: Mandriva
Posts: 9

Rep: Reputation: 0
GNUPLOT and graphics algoritms (need help)


gnuplot is a very powerfull program for drawing graphs. A have two questions about it:
1) What algoritm it use for scaling graph and diagrams? I can change window size and graphics of functions looks very pretty in all cases!
Now I write my own program where graph should display some values changing in time. But I can't implement good algoritm for scaling( problem rize when amount of points to display = 3/2, 4/3 display area). Any suggestions are wellcome.
2) gnuplot requires graphics terminal, but if I want to run it on sistem without X11(e.g. very old PC with nano-X) what should I do?
Many thanks!
 
Old 02-04-2008, 08:41 PM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
If you enlarge the graph a lot you start to see it is made up of straight lines and corners, so it is maybe not so smart. When the window is resized I would guess it just redraws the whole graph, so the lines themselves do not become thicker or thinner.

If you write your own program you probably need to redraw the whole graph any time you make a change. Sometimes you can get better results with 'double-buffering' - draw the new image onto a hidden graphics area, then swap it into view in one go.

No X11? No problem for gnuplot. Just do 'set terminal dumb' and you get a nice ASCII plot. Or just 'set terminal' will give a couple of dozen output options including many high quality hardcopy ones to send to a printer.

Or you can print to some image format like jpg, which nano-X might be able to display.

Last edited by maroonbaboon; 02-04-2008 at 08:46 PM.
 
  


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
Problems about gnuplot lawrence_lee_lee Linux - Software 1 06-26-2007 08:23 AM
gnuplot 4.0.0 ines Linux - Software 1 04-28-2005 02:26 PM
Gnuplot allycavs Linux - Software 5 02-04-2005 07:31 AM
need help for gnuplot eph Linux - Newbie 1 08-23-2004 08:41 AM
about gnuplot Rex_chaos Linux - Software 0 09-25-2003 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration