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


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

Re: arrows plotted outside of graph

Started bysfeam <sfeam@users.sourceforge.net>
First post2011-01-27 16:01 -0800
Last post2011-01-27 16:01 -0800
Articles 1 — 1 participant

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

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: arrows plotted outside of graph sfeam <sfeam@users.sourceforge.net> - 2011-01-27 16:01 -0800

#2103 — Re: arrows plotted outside of graph

Fromsfeam <sfeam@users.sourceforge.net>
Date2011-01-27 16:01 -0800
SubjectRe: arrows plotted outside of graph
Message-ID<iht103$d5a$1@news.eternal-september.org>
panchankos wrote:

> Is this expected behavior?

Yes.  You can use "set clip" to control the clipping behaviour of
the plot itself, but that does not apply to separate elements like
labels, arrows, rectangles, etc.

If you want to draw arrows that are clipped to the plot
area, you would have to use a plot command:

    plot sin(x), \
    '-' using 1:2:3:4 with vectors
         x0 y0 xdelta ydelta
    e



> 
> Generated a small plot on a large canvas by specifying the margins at
> screen.
> Draw an arrow using graph coordinates that lie outside the axis range
> 
> arrow is drawn in the margin, well outside the graph:
> 
> set term postscript eps enhanced size 11in,8.5in
> set nokey
> set border 10
> set xtics axis nomirror
> set xzeroaxis lt 1
> set tmargin at screen 0.412
> set bmargin at screen 0.175
> set rmargin at screen 0.869
> set lmargin at screen 0.112
> set arrow from graph 0, first 2.0  to graph 1, first 2.0  nohead lc 1
> set out 'Test_arrow_OOB.eps'
> plot sin(x)
> 
> thanks

[toc] | [standalone]


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


csiph-web