Re: Bar chart style with ListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg110468] Re: Bar chart style with ListPlot
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Sun, 20 Jun 2010 03:43:59 -0400 (EDT)
- References: <hviauh$hbb$1@smc.vnet.net>
Michael, How about this: ListPlot[Prime[Range[25]], Filling -> Axis, FillingStyle -> {Thickness[0.03]}, ImageSize -> 500, Axes -> None, Frame -> True] Not a beauty, but it does what you ask for. Cheers -- Sjoerd On Jun 19, 1:50 pm, "Michael A. Gilchrist" <mi... at utk.edu> wrote: > Hello, > > I'm working with some discrete probability functions and plotting them using > ListPlot. Given the nature of the function, I believe its clearest to > represent the values using bars rather than points. I know there's a BarChart > function, but it isn't as easy to use (e.g. you can't just give it a list of > x, y coordinates and you can't easily have overlaying datasets, they sit next > to each other). > > I'm wondering if anyone else has run into this problem and/or has any > suggestions on how to solve it. For example, are there options I can set that > will give me the desired behavior? > > Thanks for your time in this matter, > > Sincerely, > > Mike