By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,942 Members | 1,788 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,942 IT Pros & Developers. It's quick & easy.

Plotting problem in python

P: 26
Hello all,

I have a large set of data having over million entries and I want to plot it in a graph.

However the 2 libraries that I know of matplotlib and PyX both give me memory error since one requires file to be loaded and other requires such a huge list.

I am in need of a library that plots data as soon as it comes and there is no need of storing it.It could also be some type of using an application from python or using other languages like c++ etc with wrapper for python.....

Please help if you can..... Thanks a lot
Oct 13 '10 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 621
I doubt that the list is the problem, as even a million pairs of integers is only a few megabytes. That means that the display is probably causing the error. You could break it up into pages or try reducing by some other method. For more help though, you should post the error message itself as "memory error" is too vague. To answer the question of other graphing options, there are many examples on the web of using Tkinter or wx to create your own graph which would be the only way you could plot one point at a time (but 1,000,000 points @ one pixel each would still be around 1000 screens wide). It would be impossible for a graphing utility like matplotlib to handle data any other way than using a list or lists since it has to know how many points to plot to determine the scale.
Oct 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.