Hi All, I am writing an application (wxPython based) which embeds a big matplotlib figure as a main panel. Basically, this app shows oil well producers and gas injectors on a 2D map as dots (every dot represents its surface location), and a bunch of "streamlines" (i.e., straight lines or simple curves) which connect injectors and producers. As the numerical simulation continues, more and more streamlines are added to the plot (because of new wells or because interference between wells), and actually I end up having 200 dots plus 800-1200 lines. As the simulation progresses, the plots become slower and slower... As the lines are usually 2-points straight lines, I was thinking about using Line Collections; however, every matplotlib line has a linewidth value that is dependent on the calculated "interference" effect between wells, which means I have to build a matplotlib line for every line connecting an injector with a producer. Moreover, every injector well has its own colour for the streamlines (there are 33 injector wells). Will Line Collections save some time in this case? If not, does anyone have a suggestion on how I could try to speed-up the plotting? I am not really familiar with some obscure line/axes properties, so I may have overlooked something. This is with matplotlib 0.90, numpy 1.0.3, wxPython 2.8.4, Python 2.5, Windows XP, WxAgg (pure Python implementation).
Thank you for every suggestion, and sorry for the long post. Andrea. "Imagination Is The Only Weapon In The War Against Reality." http://xoomer.virgilio.it/infinity77/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users