MathGroup Archive 2010

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

Search the Archive

Re: PlotRange All vs Full in ListPlot (bug?)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106987] Re: [mg106959] PlotRange All vs Full in ListPlot (bug?)
  • From: "David Park" <djmpark at comcast.net>
  • Date: Sat, 30 Jan 2010 07:14:09 -0500 (EST)
  • References: <2816245.1264770758292.JavaMail.root@n11>

This seems like a subtle rendering bug. Here is an even simpler case:

line = Table[{x, 1}, {x, 1, 10}];
line[[1, 2]] = 1.*^7;
Graphics[
 {Point@line,
  Line[line]},
 AspectRatio -> 1/GoldenRatio,
 PlotRange -> {0, 2},
 Axes -> True]

Whether the line displays depends on the relation of the outlier to the max
Plot range. Decrease the outlier by a factor of 10 OR increase {0,2} to
{0,20} and the line will reappear.


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  



From: Frank Iannarilli [mailto:frankeye at cox.net] 

Weird (bug?) behavior of PlotRange in ListPlot (Mathematica 7, WinXP).

Try the below evaluations in order:
Here are two {x,y} data series:

data = Table[Table[{4. i, RandomReal[]}, {i, 1, 18}], {2}];

ListPlot[data, Joined -> {False, True}, PlotRange -> {All, {0, 0.5}}]

So far, so good. Now replace the 1st point in the second data series
with a large-magnitude outlier:

data[[2, 1]] = {4., 1.*10^9};

ListPlot[data, Joined -> {False, True}, PlotRange -> {All, {0, 0.5}}]

What happened to the joined curve (2nd data series) -- it's gone!
But now change the "All" to "Full" in PlotRange:

ListPlot[data, Joined -> {False, True}, PlotRange -> {Full, {0, 0.5}}]

Everything's now okay - the joined curve is back!





  • Prev by Date: Re: Journals dying?, apparently rather slowly (was
  • Next by Date: Re: ListLinePlot Labels
  • Previous by thread: PlotRange All vs Full in ListPlot (bug?)
  • Next by thread: Prime Segment Diagram; why the codes run very slowly?