Re: How can I speed up drawing of 2D graphs?



SzH wrote:
On Oct 25, 6:38 pm, Dave <nowh...@xxxxxxxxxxx> wrote:
I have a notebook which reads data from a file. There are 70,000 lines
and so 70,000 points. When I plot this in Mathematica 6 using ListPlot[]
it does not take too long to plot on screen. But when the notebook is
saved as a PDF, it is painfully slow to draw, taking more than 30
seconds to render a single page which has 4 graphs on it.

Since the data is actually sorted in numeric order, simply plotting
every 10th or 100th data point would probably be OK - there is no need
to have all 70,000 points on each graph.

Yes, this solution would work. So, have you tried taking every 100th
point from the data? What went wrong with it?

I was not aware how to do that - I guess if I had looked enough, I should have been able to work it out. But I don't immediately know what function to use.

Any suggestions?

Another solution is to use the option MaxPlotPoints (which is new in
Mathematica 6).


That works well. It cuts the file size down by a factor of 4 too.
.



Relevant Pages

  • Re: How can I speed up drawing of 2D graphs?
    ... When I plot this in Mathematica 6 using ListPlot ... But when the notebook is ... seconds to render a single page which has 4 graphs on it. ...
    (sci.math.symbolic)
  • [Mathematica] How can I speed up drawing of 2D graphs?
    ... When I plot this in Mathematica 6 using ListPlot[] it does not take too long to plot on screen. ... But when the notebook is saved as a PDF, it is painfully slow to draw, taking more than 30 seconds to render a single page which has 4 graphs on it. ...
    (sci.math.symbolic)
  • Re: How to visualize Riemann surfaces
    ... But that is how the mathematica article I ... of the complex plane except for the points in your barrier. ... above, then, this graph is just the slit complex plane ... All I can do to plot and visualize a ...
    (sci.math)
  • Re: XY plotting tool in TCL/TK
    ... Can you comment on how Tkcanvplot compares ... the graphs and viewports are canvas elements. ... It is also possible to put more than one viewport on a canvas and this way to display e.g. two similar graphs in the same x range and different y ranges. ... This was important for me, as well as the ability to plot huge amounts of XY data, zooming and scrolling. ...
    (comp.lang.tcl)
  • Re: adding plots problem
    ... I'm trying to plot many graphs on a single axis by using the hold on command, the thing is I want to keep one graph always fixed while the rest change, but if I use hold on I would get all the graphs superimposed. ... % plot with dummy data ...
    (comp.soft-sys.matlab)

Loading