Plotting problem in python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nk28
    New Member
    • Jan 2010
    • 26

    Plotting problem in python

    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
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    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.

    Comment

    Working...