From: Mark H. <ao...@ds...> - 2004-08-18 22:02:55
|
Hi, Is there any easy way of adding missing points to a (line) plot? Matlab can do this using NaN, but as far as I can tell matplotlib doesn't support this. Something like the code below would be nice, but I don't know if this is Numeric compatible/cross platform enough/etc? from numarray.ieeespecial import * plot([10, 20, nan, 30]) I guess I can do split(source array) --> a, b and then plot(a, linestyle, b, linestyle) but having missings directly in the array would be preferable if possible. |