Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: ListLinePlot Marker Location

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101169] Re: ListLinePlot Marker Location
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Thu, 25 Jun 2009 07:17:18 -0400 (EDT)
  • References: <h1sv64$mca$1@smc.vnet.net>

I think it's a rounding error when going from numbers to pixels. Try
the following and play with the size of the graphic.

s1 = {0, 0, 0, 0, 0, 0, 1, 0, 0, 0};
ListLinePlot[s1, PlotRange -> All,
 PlotMarkers -> Graphics[{AbsolutePointSize[8], Point[{0, 0}]}],
 Prolog -> {AbsolutePointSize[10], Red, Point[{7, 1}]}]

Cheers-- Sjoerd

On Jun 24, 12:29 pm, "Kevin J. McCann" <Kevin.McC... at umbc.edu> wrote:
> I believe that the markers in ListLinePlot are not centered on the
> actual points. Please see the following example:
>
> s1 = {0, 0, 0, 0, 0, 0, 1, 0, 0, 0};
> ListLinePlot[s1, PlotRange -> All, PlotMarkers -> Automatic,
>   Prolog -> {AbsolutePointSize[10], Red, Point[{7, 1}]}]
>
> Any ideas?
>
> Thanks,
>
> Kevin



  • Prev by Date: Re: ListLinePlot Marker Location
  • Next by Date: Re: display of graphics primitives
  • Previous by thread: Re: ListLinePlot Marker Location
  • Next by thread: Re: ListLinePlot Marker Location