Menu

#335 Add offset to arrows

open
nobody
None
5
2013-02-10
2007-04-25
No

This patch adds the keyword 'offset' to the 'set arrow' command to move the arrow by an offset. The default unit is characters for the offset.

This is especially useful for plotting graphs in the DIN style:

set arrow from graph 1,first 0 rto graph 0.2,0 offset graph -0.2,char -2
set arrow from first 0,graph 1 rto graph 0,0.25 offset char -5,graph -0.25
set zeroaxis lt -1
unset border
set xtics axis
set ytics axis
set label 'x' at graph 1,first 0 offset graph -0.1,char -3 centre
set label 'x^2' at first 0,graph 1 offset char -6,graph -0.125 right
plot x*x-6

In addition, it complements to the other already implemented offset keywords in labels, xlabels, etc.

Discussion

  • Harald Harders

    Harald Harders - 2008-02-10

    Logged In: YES
    user_id=207272
    Originator: YES

    An update for the current CVS version and a new demo.

    I wonder why not a single feedback is available. I find this functionality very useful when combining text with arrow as in the new demo file arrowoffset.dem.
    File Added: arrowoffset-20080210-2004.diff

     
  • Harald Harders

    Harald Harders - 2009-01-21

    Patch against cvs version as of 2009-01-21

     
  • Harald Harders

    Harald Harders - 2009-01-21

    File Added: arrowoffset-20090121-2227.diff

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.