Menu

#1 Dual-line (X-Y), filled between lines.

open
None
5
2002-04-12
2001-11-25
Anonymous
No

I want to plot two sets of bathymetric data
(pre-dredging and post-dredging) on the same axes and
fill the area between the two lines (the material to be
removed) with a slanted line pattern. Having re-read
the manual this afternoon, I still don't see how to do
this.

I suppose that I plot the two lines by opening, reading
and drawing the curves for two data files while in the
same portion of the command file. But, I've no idea how
to fill the area between the two.

Pointers to the docs, an example file, or explicit
instructions greatly appreciated.

Many thanks,

Rich

Discussion

  • Dan Kelley

    Dan Kelley - 2002-04-12
    • assigned_to: nobody --> dankelley
     
  • Peter S Galbraith

    Logged In: YES
    user_id=31877

    You can't do a slanted line pattern, I don't think.

    But you could do:

    read columns x y
    0 0
    1 1
    2 1
    3 2
    4 0

    set y axis decreasing
    draw axes
    set color red
    draw curve filled to 0 y

    read columns x y
    0 0
    1 .75
    2 .80
    3 1.2
    4 0

    set color white
    draw curve filled to 0 y

     

Log in to post a comment.