LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-02-2010, 03:32 PM   #1
mfduqued
Member
 
Registered: Dec 2008
Location: Colombia
Distribution: Slackware 12.2
Posts: 33
Blog Entries: 1

Rep: Reputation: 15
Postscript with Gnuplot


Community,

I have some graphics with gnuplot 4.4. At my file I change lw to 0.18. But
when I obtain a file eps, my changes are lost.

Why?. What do I do?
Which is terminal that accept the option linewidth?

I only like to change the curves' linewidth, and do not change axes'
linewidth

Thank you.

Last edited by mfduqued; 04-02-2010 at 07:30 PM.
 
Old 04-02-2010, 11:12 PM   #2
codedr
Member
 
Registered: Feb 2007
Location: USA
Distribution: opensuse, slackware
Posts: 35

Rep: Reputation: 19
According to the gnuplot help documentation
> set terminal postscript eps lw 0.18

I don't see any note that would imply that linewidth is ignored by
the eps parameter.

Are you implying that the lw param works without eps specified ?
 
1 members found this post helpful.
Old 04-03-2010, 12:13 AM   #3
mfduqued
Member
 
Registered: Dec 2008
Location: Colombia
Distribution: Slackware 12.2
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: 15
codedr,

Thanks for your comment.

But when I do your suggestion I have a problem.

This changes all linewidth. I only need to change some plot's data.

Is this possible at postscript?
 
Old 04-03-2010, 04:35 AM   #4
Vrajgh
Member
 
Registered: Aug 2005
Posts: 68

Rep: Reputation: 33
I wonder if there is a minimum width that can be drawn with postscript.

Code:
gnuplot> set terminal postscript eps mono
Terminal type set to 'postscript'
Options are 'eps noenhanced defaultplex \
   leveldefault monochrome colortext \
   solid dashlength 1.0 linewidth 1.0 butt \
   palfuncparam 2000,0.003 \
   "Helvetica" 14 '
gnuplot> set output "out.eps"
gnuplot> plot sin(x) lw 5, cos(x) lw 1, sin(2*x) lw 0.18
In this code the sin(x) line is very thick, the cos(x) is thinner but I agree that the sin(2*x) doesn't look a lot thinner than the cos(x) line (when viewed with gv). Have you tried printing it, as for postscript the printer output is probably the most definitive test.

Other than that, do you really need a line that thin? On the wxt terminal I can hardly see it!
 
Old 04-03-2010, 05:27 AM   #5
codedr
Member
 
Registered: Feb 2007
Location: USA
Distribution: opensuse, slackware
Posts: 35

Rep: Reputation: 19
eps mode is for generating a single plot file for embedding in another document.

Not sure what you mean by 'only some plot's data'.
Maybe you want to change something in the plot command you are doing for your
graph.

I've usually found what I've needed with 'help plot' command inside gnuplot.
If you need more help, post a short example on what you are trying to do if
you cannot find it in the documentation.
 
Old 04-03-2010, 10:33 AM   #6
mfduqued
Member
 
Registered: Dec 2008
Location: Colombia
Distribution: Slackware 12.2
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: 15
I use gnuplot as
set style line 10 linetype -1 lw 0.125
set terminal postscript eps enhanced colour lw 0.125
set output 'grafica1.eps'
set view 60,25,,
t=2.7
a=1
f(x,y)=(2*cos(sqrt(3)*x*a))+(4*cos(sqrt(3)*a*y/2))
gm(x,y)= t*sqrt(3+f(x,y))
splot gm(x,y) with lines ls 10 notitle, y*sin(x) with lines notitle

I only like to change the curves' linewidth, and do not change axes' linewidth.

Last edited by mfduqued; 04-03-2010 at 10:37 AM.
 
Old 04-08-2010, 09:03 AM   #7
codedr
Member
 
Registered: Feb 2007
Location: USA
Distribution: opensuse, slackware
Posts: 35

Rep: Reputation: 19
help in gnuplot

in gnuplot
> help splot with
with <style> ... linewidth

Quote:
You may also scale the line width and point size for a plot by using
<line_width> and <point_size>, which are specified relative to the default
values for each terminal.
 
  


Reply

Tags
gnuplot, postscript



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
GNUplot / sed help sippyCUP Linux - Newbie 3 08-05-2008 01:41 PM
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 06:48 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