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 » Entirely Null series is drawn as a random constant line
Re: Entirely Null series is drawn as a random constant line [message #56125 is a reply to message #56108] Fri, 29 January 2021 13:53 Go to previous messageGo to previous message
Maginor is currently offline  Maginor
Messages: 44
Registered: May 2019
Member
That particular problem seems to have been fixed, but I have a new one:

When I draw lines and there are holes (Nulls) in the series, the holes are now filled with a line. I rely on the behaviour that this had before, where no lines are drawn between two values if there is a Null in between.

It also gets weirder, because if there is a hole at some point, values at later points where there are no holes sometimes also get janky.

I think this problem was not introduced now, but earlier last year (I have not updated upp since maybe January 2019) because another person who attempted to build my application with the upp distribution from some time in the autumn of 2020 reported this problem.


Examples:

Correct behaviour from the old version:
https://github.com/NIVANorge/Mobius/blob/master/Documentation/img/bug/old_tdp.png?raw=true

New behaviour on the same time series as above:
https://github.com/NIVANorge/Mobius/blob/master/Documentation/img/bug/new_tdp.png?raw=true

Correct behaviour from the old version:
https://github.com/NIVANorge/Mobius/blob/master/Documentation/img/bug/old_q.png?raw=true

New behaviour on the same time series as above:
https://github.com/NIVANorge/Mobius/blob/master/Documentation/img/bug/new_q.png?raw=true

Edit:
I right clicked and looked at Scatter Data to confirm that the actual background data is the same in both versions, so the problem is with the plotting.

Edit:
I don't really understand the jankyness that is displayed in the second example. It may not be related to the hole issue at all. It seems like it begins happening at a random point in the time series. Some times that is at the beginning of the time series, other times it starts in the middle somewhere. However it seems like that if two series have the same set of X values, the jankiness tends to begin at the same X value for both.
What I call the "jankyness" here is that it puts two y values for each X value (which is not how the data are), and it skips points in between.

Note that I use pretty high X values (they are number of seconds since a reference date, and the series can go over many years). So if values are somehow rounded to float or something like that, maybe that could be an issue, but that is just random guessing.


These are all added using
AddSeries(double *, double *, int);

Note that I use
SetFastViewX(true);
SetSequentialXAll(true);

[Updated on: Fri, 29 January 2021 15:18]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ScatterDraw::ExplicitRange
Next Topic: CtrlLib and ScatterDraw Layout Error.
Goto Forum:
  


Current Time: Sat Apr 20 10:26:45 CEST 2024

Total time taken to generate the page: 0.05067 seconds