7 Oct 03:18
path simplification with nan (or move_to)
From: Eric Firing <efiring@...>
Subject: path simplification with nan (or move_to)
Newsgroups: gmane.comp.python.matplotlib.devel
Date: 2008-10-07 01:20:57 GMT
Subject: path simplification with nan (or move_to)
Newsgroups: gmane.comp.python.matplotlib.devel
Date: 2008-10-07 01:20:57 GMT
Mike, John, Because path simplification does not work with anything but a continuous line, it is turned off if there are any nans in the path. The result is that if one does this: import numpy as np xx = np.arange(200000) yy = np.random.rand(200000) #plot(xx, yy) yy[1000] = np.nan plot(xx, yy) the plot fails with an incomplete rendering and general unresponsiveness; apparently some mysterious agg limit is quietly exceeded. With or without the nan, this test case also shows the bizarre slowness of add_line that I asked about in a message yesterday, and that has me completely baffled. Both of these are major problems for real-world use. Do you have any thoughts on timing and strategy for solving this problem? A few weeks ago, when the problem with nans and path simplification turned up, I tried to figure out what was going on and how to fix it, but I did not get very far. I could try again, but as you know I don't get along well with C++. I am also wondering whether more than straightforward path simplification with nan/moveto might be needed. Suppose there is a nightmarish time series with every third point being bad, so it is(Continue reading)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
RSS Feed