Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ingo Thies Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Plotting very simple Graph Date: Mon, 26 Dec 2011 18:48:43 +0100 Lines: 45 Message-ID: <9lrqbtFepqU1@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net S48cVxgZku6ByDQcT0ZrUApz4OLcOXcbjX6DUjKBHPAr/oQYhr Cancel-Lock: sha1:r+ytU9EIAw3JT5LoZFT6GTzuGCw= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:9.0) Gecko/20111220 Thunderbird/9.0 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:788 Hi Christian! Maybe the following might be helpful to you. You probably should insert something more useful label in the xlabel and ylabel commands. You should also adjust the font size If you need Encapsulated Postscript (e.g. for LaTeX), use this terminal definition: set term postscript eps color size 15cm,10cm "Helvetica" 20 set output 'a.eps' If you need PNG, use this: set term png size 800,600 set output 'a.png' and don't forget to adjuste the sizes to a fitting value for your paper. Then insert (and edit where needed): lws=1.0; pss=2.0 set style line 1 lt 1 pt 1 lw 1.0*lws ps 1.0*pss lc rgb '#ff0000' set style line 2 lt 1 pt 2 lw 1.0*lws ps 1.0*pss lc rgb '#0000ff' a(x) = 71 * 0.9855**x b(x) = 71 * 0.9775**x ymin=b(15.) ymax=71. print 'ymin,ymax = ',ymin,ymax set xlabel 'n' # maybe some more useful text set ylabel 'a,b(n)' # should be used as axis labels set xrange [0:15] set yrange [ymin:ymax] set samples 16 # this makes gnuplot plot 16 points, i.e. 0...15 plot a(x) t 'a(n)' w p ls 1, b(x) t 'b(n)' w p ls 2 Note that gnuplot requires abscissa values to be referred to as x here, but x ist your n. And note that "#" is a comment indicator (making everything right to it be ignored by gnuplot) except for the rgb '#******' which is a hex RGB specifier. HTH -- Gruß, Ingo