Best way to graph a discontinuous data set?
Is there any easy way to do this? I know I can use DeletePoints to remove the points that have a value of "-1", but I'm not sure how I can make it so that the line graph is plotted discontinuously.
Thanks
Something like:
foo = foo[p] == -1 ? NaN : foo[p]
should work for the replacement.
August 29, 2008 at 01:08 pm - Permalink
August 29, 2008 at 01:33 pm - Permalink
September 23, 2008 at 01:59 pm - Permalink
On the LHS you have a "True or false" question.
Part 1:
foo[p]==-1? which points in foo are equal to -1?
Part 2:
foo= ....... NaN : foo[p]
where the question in part 1 equates to True, set the value of foo to NaN. Where the question equates to False, leave the point as it is.
September 23, 2008 at 03:07 pm - Permalink
April 20, 2012 at 10:30 pm - Permalink
Just write w[2,100]=NaN
April 20, 2012 at 10:34 pm - Permalink
Just to be painfully clear, note that will be inclusive of points 2 and 100. If you want points between 2 and 100, exclusive of the endpoints, you want to use
w[3,99] = NAN
Apologies if this is too close to stating the obvious.
April 21, 2012 at 08:28 am - Permalink
April 22, 2012 at 11:08 am - Permalink