Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*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 1996

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

Search the Archive

ListPlot vs BarChart (minor annoyances file)

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

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:

   <<Graphics`Graphics`

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

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

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

==== [MESSAGE SEPARATOR] ====


  • 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?