Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ScatterDraw & ScatterCtrl » (RESOLVED) Line drawn across Null values
(RESOLVED) Line drawn across Null values [message #59710] Wed, 15 March 2023 13:54 Go to previous message
Maginor is currently offline  Maginor
Messages: 44
Registered: May 2019
Member
Edit: This is resolved in an upcoming version.


Hi,
It used to be so that if a line plot has a Null data value in it, it would have a gap at that value.
Now this has been changed so that it draws a line from the last valid value to the next one.

If this change is intentional, I would prefer it to be configurable so that I can still get the old behaviour.

Edit:
Digging into it a bit, I found that this change is caused by the new
DataAddPoints
function which extracts the points from the data source into a Vector<Point>. It has been coded so that it just skips values where !IsNum(yy).

I guess this is a nice optimization unless you actually want it to have holes at Null values, which was how it worked before intentionally.
Unfortunately, I am not able to fix it just by removing the condition IsNum(yy), because it produces an incorrect plot, so I am not entirely sure what is going on.

[Updated on: Thu, 16 March 2023 10:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Labels Underneath X Axis
Next Topic: Scatter Control
Goto Forum:
  


Current Time: Fri Mar 29 14:22:22 CET 2024

Total time taken to generate the page: 0.01256 seconds