Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2275 > unrolled thread

Plotting simple data starting from 1

Started byphil.tooley@gmail.com
First post2014-01-28 09:29 -0800
Last post2014-01-28 10:02 -0800
Articles 2 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Plotting simple data starting from 1 phil.tooley@gmail.com - 2014-01-28 09:29 -0800
    Re: Plotting simple data starting from 1 Erik Zweigle <erikzweigle@gmail.com> - 2014-01-28 10:02 -0800

#2275 — Plotting simple data starting from 1

Fromphil.tooley@gmail.com
Date2014-01-28 09:29 -0800
SubjectPlotting simple data starting from 1
Message-ID<fe6d2dc3-53e3-417d-bbdf-c52ad2e9aee6@googlegroups.com>
Hello All,

I am currently plotting several files containing simple lists of numbers with:

gnuplot> plot for [a=1:3:1] "file".a using :1

This is almost perfect, but I would like my x-axis to start from 1 instead of zero, is there a simple way to ask gnuplot to do this?

Many Thanks

Phil

[toc] | [next] | [standalone]


#2276

FromErik Zweigle <erikzweigle@gmail.com>
Date2014-01-28 10:02 -0800
Message-ID<d11a15bc-32f3-4277-98b9-a0e7bbdc9fc9@googlegroups.com>
In reply to#2275
On Tuesday, January 28, 2014 9:29:13 AM UTC-8, phil....@gmail.com wrote:
> Hello All,
> 
> 
> 
> I am currently plotting several files containing simple lists of numbers with:
> 
> 
> 
> gnuplot> plot for [a=1:3:1] "file".a using :1
> 
> 
> 
> This is almost perfect, but I would like my x-axis to start from 1 instead of zero, is there a simple way to ask gnuplot to do this?
> 
> 
> 
> Many Thanks
> 
> 
> 
> Phil

I think page 159 of the gnuplot documentation is what you are looking for.  

set xrange [1:100]

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web