Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Package for fast plotting of many data points in Python?

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


mail.to.daniel.platz at googlemail

Jul 9, 2009, 3:03 PM

Post #1 of 10 (598 views)
Permalink
Package for fast plotting of many data points in Python?

Hi,

I am programming a oscilloscope module in Python. For this reason, I
want to plot very many data points as fast as possible. This can be
more than 100 000 at once. So far I have been using the ploting module
of wxPython. However, it becomes unstable for more than 25000 points.
Can someone recommend me a faster plotting library? It would be really
cool if one could embed this in wxPython. If someone has an idea I
would be very glad about answer.

With kind regards,

Daniel
--
http://mail.python.org/mailman/listinfo/python-list


stef.mientki at gmail

Jul 9, 2009, 3:26 PM

Post #2 of 10 (573 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

tt-industries wrote:
> Hi,
>
> I am programming a oscilloscope module in Python. For this reason, I
> want to plot very many data points as fast as possible. This can be
> more than 100 000 at once.
At once is impossible ;-)
> So far I have been using the ploting module
> of wxPython.
which plotting module ?
> However, it becomes unstable for more than 25000 points.
>
again what do you mean: 25000 points per ?
25000 points on a 1600 pixel width screen ?

Please try to be somewhat more specific.
cheers,
Stef
> Can someone recommend me a faster plotting library? It would be really
> cool if one could embed this in wxPython. If someone has an idea I
> would be very glad about answer.
>
> With kind regards,
>
> Daniel
>

--
http://mail.python.org/mailman/listinfo/python-list


clp2 at rebertia

Jul 9, 2009, 4:54 PM

Post #3 of 10 (575 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

On Thu, Jul 9, 2009 at 3:03 PM,
tt-industries<mail.to.daniel.platz [at] googlemail> wrote:
> Hi,
>
> I am programming a oscilloscope module in Python. For this reason, I
> want to plot very many data points as fast as possible. This can be
> more than 100 000 at once. So far I have been using the ploting module
> of wxPython. However, it becomes unstable for more than 25000 points.
> Can someone recommend me a faster plotting library? It would be really
> cool if one could embed this in wxPython. If someone has an idea I
> would be very glad about answer.

Don't know how fast it is or how well it integrates, but matplotlib is
probably worth considering:
http://matplotlib.sourceforge.net/

Cheers,
Chris
--
http://blog.rebertia.com
--
http://mail.python.org/mailman/listinfo/python-list


ben+python at benfinney

Jul 9, 2009, 6:11 PM

Post #4 of 10 (570 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

tt-industries <mail.to.daniel.platz [at] googlemail> writes:

> I am programming a oscilloscope module in Python. For this reason, I
> want to plot very many data points as fast as possible. This can be
> more than 100 000 at once.

I think you will find good results using Numpy for your arrays of data
<URL:http://numpy.scipy.org/> and Matplotlib to plot those arrays
<URL:http://matplotlib.sourceforge.net/>.

--
\ “Ubi dubium, ibi libertas.” (“Where there is doubt, there is |
`\ freedom.”) |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list


roy at panix

Jul 9, 2009, 6:16 PM

Post #5 of 10 (564 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

In article
<0734dc45-d8a0-4f28-b945-f9e179f30f5c [at] h11g2000yqb>,
tt-industries <mail.to.daniel.platz [at] googlemail> wrote:

> I am programming a oscilloscope module in Python.

Sigh. I guess I'm showing my age, but I still can't get used to the idea
that the right tool to build an oscilloscope is no longer a soldering iron.
--
http://mail.python.org/mailman/listinfo/python-list


miki.tebeka at gmail

Jul 9, 2009, 8:14 PM

Post #6 of 10 (573 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

Hello Daniel,

> Can someone recommend me a faster plotting library?
I found out gnuplot to be blazing fast for many many points.
I usually just call it using subprocess but there are Python bindings
to it somewhere as well.

HTH,
--
Miki <miki.tebeka [at] gmail>
http://pythonwise.blogspot.com


--
http://mail.python.org/mailman/listinfo/python-list


jeremy+complangpython at jeremysanders

Jul 10, 2009, 1:51 AM

Post #7 of 10 (559 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

tt-industries wrote:

> Hi,
>
> I am programming a oscilloscope module in Python. For this reason, I
> want to plot very many data points as fast as possible. This can be
> more than 100 000 at once. So far I have been using the ploting module
> of wxPython. However, it becomes unstable for more than 25000 points.
> Can someone recommend me a faster plotting library? It would be really
> cool if one could embed this in wxPython. If someone has an idea I
> would be very glad about answer.

Veusz can plot a line with that many points with that many points in a
couple of seconds on my system. It's a bit faster without antialiasing,
slower if you want to actually plot markers at each position.

Jeremy

--
Jeremy Sanders
http://www.jeremysanders.net/

--
http://mail.python.org/mailman/listinfo/python-list


mail.to.daniel.platz at googlemail

Jul 11, 2009, 3:33 PM

Post #8 of 10 (545 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

Hi,

thanks for your repleys. I have tried matplotlib but it is extremely
slow. I think it is more optimized for good looking plots instead of
speed. I do not know the Python bindings of gnuplot and Veusz. To
clarify the issue again, by 25000 data points I mean 25000 pixels,
i.e. corresponding (x,y) pairs. Thus the mapping to one pixel on the
screen is not unique.

Now, that I have to implement this problem on my own I am very
impressed by the plotting capabilities of LabView which brings thounds
of data points on screen in an extremely short time.

Thanks for your help.

Best regards,

Daniel
--
http://mail.python.org/mailman/listinfo/python-list


ben+python at benfinney

Jul 11, 2009, 4:27 PM

Post #9 of 10 (547 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

Daniel Platz <mail.to.daniel.platz [at] googlemail> writes:

> I do not know the Python bindings of gnuplot and Veusz.

A web search does, though.

<URL:http://clusty.com/search?query=gnuplot+python>
<URL:http://clusty.com/search?query=veusz+python>

--
\ “The problem with television is that the people must sit and |
`\ keep their eyes glued on a screen: the average American family |
_o__) hasn't time for it.” —_The New York Times_, 1939 |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list


mmanns at gmx

Jul 15, 2009, 3:36 PM

Post #10 of 10 (515 views)
Permalink
Re: Package for fast plotting of many data points in Python? [In reply to]

On Sat, 11 Jul 2009 15:33:32 -0700 (PDT)
Daniel Platz <mail.to.daniel.platz [at] googlemail> wrote:

> thanks for your repleys. I have tried matplotlib but it is extremely
> slow. I think it is more optimized for good looking plots instead of
> speed. I do not know the Python bindings of gnuplot and Veusz. To
> clarify the issue again, by 25000 data points I mean 25000 pixels,
> i.e. corresponding (x,y) pairs. Thus the mapping to one pixel on the
> screen is not unique.

Have you already tried out rpy?

Martin
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.