Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-02 Thread claudef
ity. Hope this is useful. Regards, Claude Claude Falbriard Certified IT Specialist L2 - Middleware AMS Hortolândia / SP - Brazil phone:+55 13 9 9760 0453 cell: +55 13 9 8117 3316 e-mail:clau...@br.ibm.com From: Jouni K. Seppänen To: matplotlib-users@lists.sourcefor

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-02 Thread Jouni K . Seppänen
nertskull writes: > If I change that line the "if True:" then I get MUCH better results. > But I also get enormous file sizes. That's interesting! It means that your pdf viewing program (which one, by the way? Adobe Reader or some alternative?) is slow at compositing a large number of prerender

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-02 Thread Daniele Nicolodi
On 01/05/2014 19:50, nertskull wrote: > Is there anyway to have reasonable pdf sizes as well as this improved > performance for keeping them in vector format? As others tried to explain to you, plotting that many points in a plot does not make any sense. The only thing that makes sense is to down-

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread nertskull
That definitely helps. Here's what I did. First. Yeah, the results are totally acceptable if I do '-' as my line/marker. The pdf renders and loads just fine. If I do 'o' or even ',' as my marker, then the pdf is horrendously slow. I'm talking minutes to render a page. So, I tried your idea

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Jouni K . Seppänen
nertskull writes: > The problem, is the pdf is unbearably slow when plotting as a scatter plot > or as a line with markers. > > If I make a regular line plot, with no markers, just a single line, it is > plotted and the pdf is fine. But then it connects my points which I don't > want. Others ha

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Benjamin Root
This makes me wonder if you would be better served with something like bokeh: http://bokeh.pydata.org/ Cheers! Ben Root On Thu, May 1, 2014 at 9:28 AM, nertskull wrote: > No we definitely aren't really interested in the gaps. Gaps are just where > we were unable to collect the data. > > I d

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread nertskull
No we definitely aren't really interested in the gaps. Gaps are just where we were unable to collect the data. I don't know if we can attach pictures to this thread or not, but I'm going to try. The attached is roughly what I want, but with all 750 as vectors. I want to see the 'movement' of th

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Dominik Klaes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, when reading the number of points you have in each plot, I have to ask why you need so many (plotted) data points. If you plot e.g. every 10th or 50th data point, you reduce the number of points by a factor of 10 (or 50). This should make the PDF

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Shahar Shani Kadmiel
What do you consider a gap?Perhaps if you know that you can find those in your data and if you really want to visualize the gaps, plot those instead of the data.   — Sent from Mailbox On Thu, May 1, 2014 at 2:41 PM, Alan G Isaac wrote: > Suppose each data point is only 1 point (1/72 ") in diam

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Shahar Shani Kadmiel
How about different line styles or colors instead of markers?— Sent from Mailbox On Thu, May 1, 2014 at 2:10 PM, nertskull wrote: > I am trying to create a multipage pdf of about 750 different graphs. > Each graph has around 5,000 - 15,000 data points, giving me roughly 7 > million points across

Re: [Matplotlib-users] Millions of data points saved to pdf

2014-05-01 Thread Alan G Isaac
Suppose each data point is only 1 point (1/72 ") in diameter. A solid line across a 20" page is less than 1500 points. You're using a fraction of a page per graph and trying to plot 5,000-15,000 points per graph. This is pointless (pun intended) for visual display, especially since you do not care