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


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

Re: arrows plotted outside of graph

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: arrows plotted outside of graph
Followup-To comp.graphics.apps.gnuplot
Date 2011-01-27 16:01 -0800
Organization gnuplot development team
Message-ID <iht103$d5a$1@news.eternal-september.org> (permalink)
References <a000223f-9e37-48e8-b920-b9465e36bf58@z3g2000prz.googlegroups.com>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web