MathGroup Archive 2007

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

Search the Archive

Re: How to remove an artifact from a plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81932] Re: How to remove an artifact from a plot
  • From: markholtuk at googlemail.com
  • Date: Sun, 7 Oct 2007 05:27:39 -0400 (EDT)
  • References: <fe7hru$oq7$1@smc.vnet.net>

You need to set the AxesOrigin to {0,0} as an option in ListPlot as
follows:

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}, AxesOrigin -> {0, 0}]

Best wishes,

Mark

Mark R. Holt, BA, PhD,
Room 3.28
Molecular Cardiology,
Cardiovascular Division and
Randall Division of Cell and Molecular Biophysics,
New Hunt's House,
King's College London,
Guy's Hospital Campus,
LONDON, SE1 1UL.

Phone: +44 20 7848 6438
Fax:     +44 20 7848 6435

On Oct 6, 9:43 am, john.f... 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




  • Prev by Date: RE: Re: Generic TCPIP sockets in Mathematica (Mathlink?) > incorporation of external sensors and 16-button mouse
  • Next by Date: Re: How to remove an artifact from a plot
  • Previous by thread: Re: How to remove an artifact from a plot
  • Next by thread: Solution of a non-linear ODE