Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: Markers in list plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128310] Re: Markers in list plot
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Sat, 6 Oct 2012 01:49:52 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20121005064907.6E2FF685E@smc.vnet.net>

data = Table[{n, Prime[n]}, {n, 10}];

With PlotMarkers (n data lists with one point each):

ListPlot[List /@ data,
 PlotMarkers ->
  ToString /@ Range[Length[data]]]

With Text labels (single data list with n points):

ListPlot[data,
 PlotStyle -> White,
 Epilog -> (n = 1;
   Text[n++, #] & /@
    data)]


Bob Hanlon


On Fri, Oct 5, 2012 at 2:49 AM, Daniele <daniele.barducci at alice.it> wrote:
> Hi All,
> i would like to put personal PlotMarkers in ListPlot in the following way:
>
> ListPlot[{{x1,y1},{x2,y2},...,{xn,yn}}]
>
> in such a way that the first point has as a marker number one, the second number two and so on.. is that possible?
>
> Thanks in advance!
>



  • Prev by Date: Re: problem with DSolve and spheroidal harmonics
  • Next by Date: Re: Locator + EventHandler
  • Previous by thread: Markers in list plot
  • Next by thread: Re: Markers in list plot