Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To my knowledge, DiscretePlot cannot be parallelized, although one can simulate the default behavior of DiscretePlot and get the benefits of parallelization with a combination of ListPlot and ParallelTable. For example.

DiscretePlot[f[x], {x, 0, 2, 0.2}] // AbsoluteTiming

Mathematica graphics

ListPlot[ParallelTable[{x, f[x]}, {x, 0, 2, 0.2}], 
  Filling -> Axis] // AbsoluteTiming

Mathematica graphics

The problem with this alternative is that we lose access to several useful DiscretePlot options: ExtentMarkers, ExtentSize and ExtentElementFunction. How can we simulate the behavior of these options in ListPlot so that we may preserve the benefits of parallelization?

share|improve this question
up vote 3 down vote accepted

Try this:

share|improve this answer
How could I have missed SystemDiscretePlotDumpflatTable? Brilliant. – bobthechemist Apr 8 '14 at 17:13
@bobthechemist Yep, that's the first thing that comes to mind - you probably just forgot :) – Leonid Shifrin Apr 8 '14 at 17:14
I don't actually get an improvement in AbsoluteTiming using this function on bob's example. Should I? v7 issue? – Mr.Wizard Apr 11 '14 at 2:39
@Mr.Wizard Very likely, V7 issue. Can't check, don't have V7 handy. – Leonid Shifrin Apr 11 '14 at 13:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.