Bug 87149 - Data mode does not work well for equations or curves with widely spaced x values
Summary: Data mode does not work well for equations or curves with widely spaced x values
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-13 20:22 UTC by Rick Chern
Modified: 2004-08-16 17:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Chern 2004-08-13 20:22:11 UTC
Version:           0.99-devel (using KDE KDE 3.2.1)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.3.2 20031022  
OS:                Linux

The red dot jumps around strangely when in data mode and over an equation with widely spaced x values

How to reproduce 
- start kst
- create a vector
- create a new equation, and for x axis generate 100 samples from 0 to 10.  Plot the equation
- enter data mode
- move cursor over the equation.  
Note that the red dot keeps on jumping to the top left corner of the plot.

Expected behaviour:
Red dot more closely follows the equation.
Comment 1 Rick Chern 2004-08-13 20:23:14 UTC
Actually, not top left, but the first point on the equation.
Comment 2 Andrew Walker 2004-08-14 00:03:28 UTC
I have a fix for this but will check it in later, when all the 0.99 stuff is done.
Comment 3 Netterfield 2004-08-14 02:29:29 UTC
I think this is pretty important.  It wrecks data mode w/ equations.  How 
invasive is the fix?  

On August 13, 2004 06:03 pm, Andrew Walker wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=87149
>
>
>
>
> ------- Additional Comments From arwalker sumusltd com  2004-08-14 00:03
> ------- I have a fix for this but will check it in later, when all the 0.99
> stuff is done. _______________________________________________
> Kst mailing list
> Kst@kde.org
> https://mail.kde.org/mailman/listinfo/kst

Comment 4 Andrew Walker 2004-08-16 17:42:07 UTC
Fix problem with highlighting nearest data point. This algorithm was working (barely) for increasing x values, but would typically fail to find the nearest point when the x values were not increasing.