Bug 103580 - psd units are extremely high when loaded from older .kst files
Summary: psd units are extremely high when loaded from older .kst files
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-10 03:50 UTC by Matthew Truch
Modified: 2005-04-10 21:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
demo.kst showing problem (12.65 KB, text/plain)
2005-04-10 19:12 UTC, Matthew Truch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Truch 2005-04-10 03:50:05 UTC
Version:           1.1.0_devel (using KDE KDE 3.3.0)
Installed from:    RedHat RPMs
OS:                Linux

If you open the demo.kst included in the kst tutorial, the units on the PSD (at the bottom) are way to high (by several orders of magnitude).  If you delete the PSD, and recreate them from scratch (using the exact same parameters) everything is fine.

Steps to reproduce:
$ cd /usr/share/apps/kst/tutorial
$ kst demo.kst

Expected behavior: X axis of PSD is from ~ 0.0001 Hz to 5 Hz.
Actual behavior: X axis of PSD is from 1 Hz to 5e5 Hz.  

(Perhaps this is just an issue of the demo.kst being too old and needing to be remade, but I couldn't see anything in it that was too different from a newly generated one.)
Comment 1 George Staikos 2005-04-10 18:22:17 UTC
On Saturday 09 April 2005 21:50, Matthew Truch wrote:
> If you open the demo.kst included in the kst tutorial, the units on the PSD
> (at the bottom) are way to high (by several orders of magnitude).  If you
> delete the PSD, and recreate them from scratch (using the exact same
> parameters) everything is fine.
>
> Steps to reproduce:
> $ cd /usr/share/apps/kst/tutorial
> $ kst demo.kst
>
> Expected behavior: X axis of PSD is from ~ 0.0001 Hz to 5 Hz.
> Actual behavior: X axis of PSD is from 1 Hz to 5e5 Hz.
>
> (Perhaps this is just an issue of the demo.kst being too old and needing to
> be remade, but I couldn't see anything in it that was too different from a
> newly generated one.) _______________________________________________


   I had made a new demo.kst which fixed this problem, but can you attach the 
one you are using to the bug report so I can reverify?

Thanks
Comment 2 Matthew Truch 2005-04-10 19:12:42 UTC
Created attachment 10570 [details]
demo.kst showing problem

The demo.kst which shows the problem.  Note, this is the demo.kst that current
cvs installs into /usr/share/apps/kst/tutorial/, which is where I noticed it. 
It's located in kdeextragear-2/kst/misc/tutorial/demo.kst in the cvs.
Comment 3 George Staikos 2005-04-10 21:38:00 UTC
CVS commit by staikos: 

The X vector was wrong for PSDs
BUG: 103580


  M +7 -7      demo.kst   1.2


--- kdeextragear-2/kst/misc/tutorial/demo.kst  #1.1:1.2
@@ -94,5 +94,5 @@
   <curve>
     <tag>C-PSD1-cleaned_pitch</tag>
-    <xvectag>V1-INDEX</xvectag>
+    <xvectag>PSD1-cleaned_pitch-freq</xvectag>
     <yvectag>PSD1-cleaned_pitch-sv</yvectag>
     <color>#000000</color>
@@ -114,5 +114,5 @@
   <curve>
     <tag>C-PSD2-V3-GY_PITCH</tag>
-    <xvectag>V1-INDEX</xvectag>
+    <xvectag>PSD2-V3-GY_PITCH-freq</xvectag>
     <yvectag>PSD2-V3-GY_PITCH-sv</yvectag>
     <color>#08056b</color>
@@ -341,9 +341,9 @@
     <aspect x="0" y="0.666667" w="1" h="0.333333" />
     <xscalemode>0</xscalemode>
-    <yscalemode>0</yscalemode>
-    <xmin>1</xmin>
-    <xmax>199999</xmax>
-    <ymin>0.000528194</ymin>
-    <ymax>0.791231</ymax>
+    <yscalemode>5</yscalemode>
+    <xmin>0.000152593</xmin>
+    <xmax>5</xmax>
+    <ymin>0.000439953</ymin>
+    <ymax>0.949929</ymax>
     <toplabel>
       <text>Blue: missaligned.  Black: corrected</text>