MathGroup Archive 2009

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

Search the Archive

Re: DiscretePlot

  • To: mathgroup at
  • Subject: [mg96820] Re: DiscretePlot
  • From: "Q.E.D." <aoe at>
  • Date: Wed, 25 Feb 2009 04:07:36 -0500 (EST)
  • References: <gnq6qd$868$>

"Helen Read" <hpr at> wrote in message
news:gnq6qd$868$1 at
> However, unlike ListPlot (which has Joined->False by default),
> DiscretePlot has Joined->Automatic by default. If we plot greater than
> 149 points with DiscretePlot, Mathematica joins the points, and it's a
> royal mess.
...[examples of the mess condense down to]...
DiscretePlot[Sum[(-1)^(n + 1)/n, {n, 1, k}], {k, 1, 150}]
DiscretePlot[Sin[n], {n, 0, 500}]
> We can turn off the filling. (I like the filling sometimes, but not
> The students are having trouble remembering to do this, though, and I
> I'd be far happier if DiscretePlot had Joined->False by default.

Mathematica allows you to set the option defaults to meet your needs.
Just SetOptions once per session and be done with it:

In[1]:= Options[DiscretePlot, {Filling, Joined}]
Out[1]= {Filling -> Axis, Joined -> Automatic}

In[2]:= SetOptions[DiscretePlot, Filling -> None, Joined -> False];

In[3]:= Options[DiscretePlot, {Filling, Joined}]
Out[3]= {Filling -> None, Joined -> False}


  • Prev by Date: Re: Coolest Mathematica trick you'll see this month guaranteed
  • Next by Date: Re: newbie: can't Manipulate ListPlot of recurrence
  • Previous by thread: Re: DiscretePlot
  • Next by thread: Re: DiscretePlot