MathGroup Archive 2007

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

Search the Archive

Re: Using ListPlot to Plot Lines and Single Points

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83620] Re: Using ListPlot to Plot Lines and Single Points
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sun, 25 Nov 2007 04:33:15 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fi8q2r$h99$1@smc.vnet.net>

Gregory Lypny wrote:

> I'm trying to use ListPlot to plot three lists as joined observations  
> and a single point.  The single point that I want plotted separately  
> is one observation from one of the lists, and I simply want it to  
> stand out by being plotted as a dot or square.
> 
> I tried the following.
> 
> ListPlot[{firstList, secondList, thirdList, aPoint},  Joined -> {True,  
> True, True, False}]
> 
> I get the free smooth curves that I want, but not the single point.   
> Any suggestions would be most appreciated.

You could use the option *Epilog* and the graphic function *Point* as in

ListPlot[{firstList, secondList, thirdList},
  Joined -> {True, True, True, False}, Epilog -> Point[aPoint]]

For instance,

ListPlot[Table[{k,
    PDF[BinomialDistribution[50, p], k]}, {p, {0.3, 0.5, 0.8}}, {k, 0,
    50}], Filling -> Axis,
  Epilog -> {PointSize[Large], Pink, Point[{20, 0.10}]}]

Regards,
-- 
Jean-Marc


  • Prev by Date: Re: Using ListPlot to Plot Lines and Single Points
  • Next by Date: Re: Change Font?
  • Previous by thread: Re: Using ListPlot to Plot Lines and Single Points
  • Next by thread: Re: Using ListPlot to Plot Lines and Single Points