Re: How to remove an artifact from a plot

*To*: mathgroup at smc.vnet.net*Subject*: [mg81960] Re: How to remove an artifact from a plot*From*: lamoucheg at gmail.com*Date*: Sun, 7 Oct 2007 05:42:19 -0400 (EDT)*References*: <fe7hru$oq7$1@smc.vnet.net>

I can't explain why, but when you look at the InputForm of the resulting graph, it shows that it has the option AxesOrigin->[0,0.2} which gives an horizontal line and a vertical line. You can solve this by explicitely using AxesOrigin->{-10,0.} to have no vertical and horizontal lines. Somebody may comment on how AxesOrigin is determined by default? In the documentation, we only have: "AxesOrigin->Automatic uses an internal algorithm to determine where the axes should cross. If the point {0,0} is within, or close to, the plotting region, then it is usually chosen as the axes origin. " Guy Lamouche On Sat, 6 Oct 2007 08:43:42 +0000 (UTC), john.feth at honeywell.com wrote: >I'm using Mathematica 6.0 and when I use the following notebook entry > >Test=Table[{x,(1/2)+(Cos[2*2*Pi*x]/2)*(E^-(x^2)+(1/2)*0.1*E^- >((x-12)^2)+(1/2)*0.05*E^-((x-27)^2)+(10^-3)*E^-((x-280)^2))}, >{x,-10,40,0.05}];ListPlot[Test,PlotRange->All,Joined->True,Frame- >>True,FrameLabel->{"Pathlength Mismatch (2\[CenterDot]m mm)"," Signal >Strength "},BaseStyle->{FontFamily->"Garamond",FontSlant- >>"Italic",FontSize->14}] > >in addtion to the plot I want, I get a horizontal line across the >whole plot at 0.2. This sort of artifact also appears occasionally in >Mathematica 5.1. > >Does anyone know why it appears? > >Does anyone know how to get rid of it? > >Thanks very much, > >John Feth >