Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: plot discrete spectrum

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23385] Re: [mg23266] plot discrete spectrum
  • From: bernd at bio.vu.nl (Bernd Brandt)
  • Date: Fri, 5 May 2000 02:07:19 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

I just noted the answer by Bob Hanlon.

>>plt = (ListPlot[data, PlotStyle -> RGBColor[0, 0, 1],
>>           DisplayFunction -> Identity, PlotRange -> All] /.
>>         Point[{x_, y_}] :> Line[{{x, y}, {x, 0}}]);

How can i extend this to plot a stepwise function? X are the datapoints.
This means i have to plot to the next point, keeping the y value of the old.
How can i extract two data points from the plot to make

Point[{x1,y1}] Point[{x2,y2}] -> Line[{x1,y1},{x2,y1}] ? 



   |              X----X
   |              |
   |		X-----X
   |		|
   |_________________		


Kind regards,
Bernd Brandt


  • Prev by Date: Re: Gif file?
  • Next by Date: Re: Integrate query
  • Previous by thread: Re: plot discrete spectrum
  • Next by thread: Re: Re: plot discrete spectrum