Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCChart2D for Java
 Bug plotting a single point?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
rixmith Posted - 17 Jan 2010 : 17:40:45
I'm using a SimpleLinePlot to plot the results of repeated function calls.
When the function returns an invalid value I store a dummy datapoint in my TimeSimpleDataset and I mark the point as invalid. As desired, I have gaps in my plot where invalid datapoints are not plotted.

However, I noticed several situations where two valid datapoints are joined by a solid line even though there are datapoints between them that have been marked as not valid. Normally there is a gap at the location of a datapoint that is marked as invalid.


The problem occurs when a single valid datapoint is preceded and followed immediately by an invalid point.

For example, if I plot the results of several function calls where on
successive calls

f(x) = an invalid value
f(x+1) = valid
f(x+2) = invalid;
f(x+3) = invalid;
f(x+4) = valid

then a solid line is drawn from datapoint (x+1) to datapoint (x+4).
I expected a single point to be plotted for (x+1) followed by a gap for (x+2) and (x+3).

The problem seems to be the single valid datapoint. If I rig my function so that f(x) above returns a valid value then the plot works exactly as it should.

Is there a way to plot a single point in this situation?




Rick

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07