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] Which api to learn?

2014-05-01 Thread Benjamin Root
""" The pyplot interface is generally preferred for non-interactive plotting (i.e., scripting). The pylab interface is convenient for interactive calculations and plotting, as it minimizes typing. Note that this is what you get if you use the ipython shell with the -pylab option, which imports ever

Re: [Matplotlib-users] Which api to learn?

2014-05-01 Thread Yuxiang Wang
Hi Neal, I always followed what has been written here: http://matplotlib.org/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related And they said, -- Matplotlib, pylab, and pyplot: how are they related? Matplotlib is the whole package; pylab is a module in matplotl

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] Matplotlib-users Digest, Vol 96, Issue 1

2014-05-01 Thread Alan G Isaac
On 5/1/2014 6:47 AM, Björn Opitz wrote: > How would you create a figure as in > "fig = plt.figure()", but without pyplot? http://econpy.googlecode.com/svn/trunk/software4econ.xhtml#mpl-hints hth, Alan Isaac -- "Accelera

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

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

2014-05-01 Thread nertskull
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 basi

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 96, Issue 1

2014-05-01 Thread Björn Opitz
Dear all, > Is there any good reason to move to the "native" mpl api and drop pyplot? I notice I don't even understand this question, but I'd like to. From http://matplotlib.org/faq/usage_faq.html#matplotlib-pylab-and-pyplot-how-are-they-related, I see the difference between *pylab* and the pyplo