MathGroup Archive 2009

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

Search the Archive

Bug In LogPlots with WorkingPrecision option?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97140] Bug In LogPlots with WorkingPrecision option?
  • From: "M.Roellig" <markus.roellig at googlemail.com>
  • Date: Fri, 6 Mar 2009 04:25:24 -0500 (EST)

Hi Group,

the Documentation states that LogPlot takes the same options as Plot.
Unfortunately, LogPlot seems to have difficulties to properly swallow
them. Compare the follwoing examples:

p1 = Plot[Exp[-7 x], {x, 1, 5}]
p2 = LogPlot[Exp[-7 x], {x, 1, 5}, PlotRange -> {10^-10, 20}]
p3 = LogPlot[Exp[-7 x], {x, 1, 5}, PlotRange -> {10^-10, 20},
  WorkingPrecision -> 20]
p4 = LogPlot[Exp[-7 x], {x, 1, 5}, WorkingPrecision -> 20]

p2 looks good.  But if I use the WorkingPrecision option (even though
the example does not demands a particularly high precision) the plots
are messed up.
p3 is plotting something very strange but at least is able to keep the
axes ticks and labeling. Once I leave out the PlotRange everything is
completely messed up. I hope this is not a feature because I don't
understand it.
This occurs with all kinds of logarithmic plots.
Even more puzzling is the following example:

LogPlot[Exp[-7 x]/Exp[-10 Sin[10^13/(13 \[Pi]) x]], {x, 1, 2},
 PlotRange -> {10^-10, 20}]
LogPlot[Exp[-7 x]/Exp[-10 Sin[10^13/(13 \[Pi]) x]], {x, 1, 2},
 PlotRange -> {10^-10, 20}, WorkingPrecision -> 20]

Bug ?

I am using logarithmic plots a lot and am always surprised how fragile
the present implementation is. Especially  in science Log(Log)Plots
are used all the day and deserve some more love from the developers
(e.g. better automatic tick selection/control  or consistency in
positioning of text/Insets, etc...).

Cheers,

Markus R=F6llig


  • Prev by Date: Re: Huge memory consumption of GIF.exe
  • Next by Date: Re: JLink problem, Mathematica 6, OSX, Java SE 6 (64 bit).
  • Previous by thread: Re: list/sequence problem: a 'keep' list to a list of 'kept' lists
  • Next by thread: Re: Bug In LogPlots with WorkingPrecision option?