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


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

Distance from axes

Started byMichael <m@m.com>
First post2011-08-05 22:07 +0700
Last post2011-08-05 23:41 +0700
Articles 4 — 2 participants

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


Contents

  Distance from axes Michael <m@m.com> - 2011-08-05 22:07 +0700
    Re: Distance from axes Michael <m@m.com> - 2011-08-05 22:09 +0700
    Re: Distance from axes sfeam <sfeam@users.sourceforge.net> - 2011-08-05 09:15 -0700
      Re: Distance from axes Michael <m@m.com> - 2011-08-05 23:41 +0700

#513 — Distance from axes

FromMichael <m@m.com>
Date2011-08-05 22:07 +0700
SubjectDistance from axes
Message-ID<j1h0os$7to$1@dont-email.me>
It is often necessary that the curves on the graph were not close to 
axes. I use external tools for this: the script reads the data files, 
finds min and max on the Y axis, and writes to gnuplot file something 
like this:

$delta=($maxy-$miny)/20;
$maxy -= $delta;
$miny += $delta;
print GPFILE "plot [][$miny:$maxy] ....";

Can I do this with gnuplot? If not, then I suggest to introduce 
something like "set ydistance=0.05", which means that the space between 
data curves and lower/upper X axis is 1/20 of data range.

Thanks

[toc] | [next] | [standalone]


#514

FromMichael <m@m.com>
Date2011-08-05 22:09 +0700
Message-ID<j1h0u3$7to$2@dont-email.me>
In reply to#513
"-=" and "+=" must be reversed.

[toc] | [prev] | [next] | [standalone]


#515

Fromsfeam <sfeam@users.sourceforge.net>
Date2011-08-05 09:15 -0700
Message-ID<j1h4v1$4si$1@dont-email.me>
In reply to#513
Michael wrote:

> It is often necessary that the curves on the graph were not close to
> axes. I use external tools for this: the script reads the data files,
> finds min and max on the Y axis, and writes to gnuplot file something
> like this:
> 
> $delta=($maxy-$miny)/20;
> $maxy -= $delta;
> $miny += $delta;
> print GPFILE "plot [][$miny:$maxy] ....";
> 
> Can I do this with gnuplot? 

The command you are looking for is
  set offsets


> If not, then I suggest to introduce
> something like "set ydistance=0.05", which means that the space between
> data curves and lower/upper X axis is 1/20 of data range.
> 
> Thanks

[toc] | [prev] | [next] | [standalone]


#516

FromMichael <m@m.com>
Date2011-08-05 23:41 +0700
Message-ID<j1h6a0$etn$1@dont-email.me>
In reply to#515
> The command you are looking for is
>    set offsets

I did not know. Thank you.

[toc] | [prev] | [standalone]


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


csiph-web