Re: How can I speed up drawing of 2D graphs?
- From: Dave <nowhere@xxxxxxxxxxx>
- Date: Thu, 25 Oct 2007 21:06:27 +0100
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.
.
- Follow-Ups:
- References:
- Prev by Date: Re: How can I speed up drawing of 2D graphs?
- Next by Date: Re: How can I speed up drawing of 2D graphs?
- Previous by thread: Re: How can I speed up drawing of 2D graphs?
- Next by thread: Re: How can I speed up drawing of 2D graphs?
- Index(es):
Relevant Pages
|
Loading