MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting discontinuous lines


Hi Virgil,

don't say that it is so easy:


data={{1,2},{7,2},{10,2},{14,2},{16,2},{17,2},{23,2},{24,2},{30,2},{33,2}};
data1={{8,-2},{9,-2},{15,-2},{15,-2},{18,-2},{22,-2},{25,-2},{29,-2},{34,-2},{
      38,-2}};


Show[Graphics[ (Line /@ Partition[#,2]) & /@ {data,data1}]]


Regards
  Jens

Virgil Stokes wrote:
> 
> I have a list of two sets of from,to coordinate pairs that define
> line segments. For example I would like to produce a plot of
> the form:
> 
> -------    -----  --        --        ----
> 
>            --        -    -----   -----       -----
> 
SNIP SNAPP
> The problem is how to draw, efficiently the two sets of discontinuous line
> segments.
> In general, the number of discontinuous line segments will vary from one data
> set
> to another.
SNIPP SNAPP
> -- Virgil


  • Prev by Date: Re: problem with Part function
  • Next by Date: Re: problem with Part function
  • Previous by thread: Plotting discontinuous lines
  • Next by thread: units in graphics