Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

ListPlot vs BarChart (minor annoyances file)

  • To: mathgroup at
  • Subject: [mg4141] ListPlot vs BarChart (minor annoyances file)
  • From: siegman at (A. E. Siegman)
  • Date: Fri, 7 Jun 1996 02:07:39 -0400
  • Organization: Stanford University
  • Sender: owner-wri-mathgroup at

Just to keep us on our toes, the required syntax for a ListPlot
and a BarChart (either of which might be used to display, for 
example, a Fourier spectrum) are flipped, as in:


   dataListPlot = Table[{k, Sin[k 2 Pi/20]}, {k,0,20}];

   dataBarChart = Table[{Sin[k 2 Pi/20], k}, {k,0,20}];

Suggestion: It would be nice (and not too hard?) to add a
BarChart->True (i.e., "draw a line from baseline to each
list point") option to ListPlot.

   --Tony Siegman


  • Prev by Date: Help with this!!!! please
  • Next by Date: More "Logical" functions?
  • Previous by thread: Re: Help with this!!!! please
  • Next by thread: More "Logical" functions?