Re: Plotting discontinuous lines
- To: mathgroup at smc.vnet.net
- Subject: [mg18205] Re: Plotting discontinuous lines
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Mon, 21 Jun 1999 22:50:45 -0400
- Organization: Universitaet Leipzig
- References: <7khop0$qtm@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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