MathGroup Archive 2000

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

Search the Archive

Re: ListPlot bug

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26423] Re: [mg26306] ListPlot bug
  • From: Timothy Stiles <tastiles at students.wisc.edu>
  • Date: Wed, 20 Dec 2000 00:21:44 -0500 (EST)
  • References: <200012100520.AAA07024@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I've seen this same problem with my computer. I use a Windows 98
computer and print with an HP Laser Jet 5si. The point does not appear
on the screen only when printed. That is, I was able to reproduce this
problem with the following inputs

data={1,4,6,3,5}

ListPlot[data]

produces a fine picture but

ListPlot[data, PlotStyle->AbsolutePointSize[5]]

produces a graphic that in addition to the data points has a extra point
at the top of the y-axis. I tried removing it by first increasing the
PlotRange and then using Show to decrease it

Show[ListPlot[data,
PlotStyle->AbsolutePointSize[5],PlotRange->{0,10}],PlotRange->All]

but the final graph still has the extra point on the y-axis when
printed. The only way I've been able to not get the extra point when
printing is to use

Show[Graphics[{AbsolutePointSize[5],Point[data1],Point[data2],...}],Axes->True]

Has anyone else seen this problem and/or have a better solution to it?

-- Tim Stiles

Christopher Tong wrote:

> Has anyone else encountered a bug when printing a file containing
> a ListPlot graphic (where the PointSize is not the default, but
> set in the ListPlot command)?
>
> The bug is that a spurious point is plotted
> at the top end of the y-axis.  Not all of my ListPlot graphics
> have this spurious point, but the ones that do have it always have
> it (every time I print).  The spurious point does not show up on
> the screen.
>
> Any ideas on the cause and how to remedy it?  Thanks!
> I can send example code to anyone who is interested.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> CHRISTOPHER TONG                    Graduate research assistant
> Dept. of Physics
> Purdue University                   Office:  PHYS-B20
> 1396 PHYS Building                  Office phone:  (765) 494-0407
> West Lafayette, IN  47907-1396      Email:  ctong at purdue.edu
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



  • References:
    • ListPlot bug
      • From: Christopher Tong <ctong@physics.purdue.edu>
  • Prev by Date: Re:physical colors and Mathematica colors
  • Next by Date: Re: Re: want to modify NDSolve--molecular dynamics with mathematica
  • Previous by thread: ListPlot bug
  • Next by thread: Re: Re: ListPlot bug