MathGroup Archive 2009

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

Search the Archive

Re: Bug In LogPlots with WorkingPrecision option?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97199] Re: [mg97140] Bug In LogPlots with WorkingPrecision option?
  • From: "David Park" <djmpark at comcast.net>
  • Date: Sat, 7 Mar 2009 02:43:07 -0500 (EST)
  • References: <19041450.1236333952924.JavaMail.root@m02>

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: Style for function calls?
  • Next by Date: Re: list/sequence problem: a 'keep' list to a list of
  • Previous by thread: Re: Bug In LogPlots with WorkingPrecision option?
  • Next by thread: Re: JLink problem, Mathematica 6, OSX, Java SE 6 (64 bit).