-----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 smaller and faster and even if you zoom into each plot, you should be able to see enough details (of course, if there are one or two outliers you might not see them). And probably you are not able to distinguish between two data points if they are too close to each other so you probably don't need every data point. Cheers, Dominik On 05/01/2014 02:09 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 the pdf. I make it in a large pdf with a > page length of about 20 inches, and then plot about 10 graphs to a > page. So I end up with basically 75 pages in my pdf. I'm > basically trying to graph a line of XY data points. > > 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. > > I assume this is all because its making the pdf in vector format. > And when I convert it to single lines, I only have ~750 line > vectors. But when I try to scatter plot, or line plot with > markers, I end up with millions of vectors. > > I've tried the 'rasterized=True' and that definitely works. But > the quality is really bad. I need to be able to zoom in close on > the pdf and still see rough resolution of the points. > > For clarity, I don't actually need to see each individual points. > The graphs have two lines on them, and I just need to be able to > distinguish between the two lines. The two lines are just made up > of thousands of points each. > > Is there anyway to keep scalable vectors and do this? Or will I > just be forced to go to a rasterized image file in order to load > the pdf in a reasonable time. > > Thanks. > > > > -- View this message in context: > http://matplotlib.1069221.n5.nabble.com/Millions-of-data-points-saved-to-pdf-tp43338.html > > Sent from the matplotlib - users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing > platform available. Simple to use. Nothing to install. Get started > now for free." http://p.sf.net/sfu/SauceLabs > _______________________________________________ Matplotlib-users > mailing list Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > - -- Dominik Klaes Deputy student representative of the AIfA Argelander-Institut für Astronomie Room 2.027a Auf dem Hügel 71 53121 Bonn Telefon: 0228/73-5773 E-Mail: dkl...@astro.uni-bonn.de Homepage: http://www.astro.uni-bonn.de/~dklaes/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTYjxlAAoJEG4xBfJ3OX2tck4QALZ4raj6ZHW50Ie2uj31dC7n q7LynLhBCfYr8Hs/m8wad/VfNStNqdoyJta683YF4ev6qskUY6lvh3qzYRNZdYMk 8yzT2CmhrWss+jEQYyrfKjrjSZbWMtCRaNHdrF/Ne6Je7VaPE/y6+4PXmkKNNeKU bCdRdyUsUb+cjQPXgIn0bN9AFqNDOcVpMkkkzxfHU2n0kGGOymVRpOLRqQbSFR5X AsyawYmia08RRr312dNja27BJcvXA9JHJ+qk0r7UPCOZow2GZGb6BlCu+eE/xtBt j/r9Ym5KUgSD0q35veT34BLoMuD/L3Q7RujCxkToKezTdNGbRZh/8EkRKbu5Zc48 SnZAkmcAO8GTXqdBaD32l67iOjSCK1qqXLv8/Sb+0OOhZ3gMdF/6PbxvBM3m7U0g zthwBYWBkJrZUuBRyi3fzYs5olvlQDW6RWPnB4tA5acrOmrHAhSqp5I4nk+ln/mZ s41R+uG2sx5+F3aJGMLEL0lNpRtQbWUIPQ7RHJ48TVHhrG3oB/41Li4FOcYvboKr 8B5XIygw8eNULja7Q7Coz2T/uFg42pMyRMMMDz92eLhOxlmk8k0bWqAqUp4dj85l Hodz94PwYvloWV6tagSHVAYiUtkWhkyHOYBSH1oPSfB4Tpsh8aiGCk5oIZn92Kty kswsXBVzAe4npHOfl05Y =9Tfy -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users