Bug 295664

Summary: Y-Zoom Local Maximum does not work as expected in a shared x-axis box
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: plottingAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.0.4   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas Brisset 2012-03-10 11:08:12 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0
Build Identifier: 

When selecting a few plots and putting them into a shared x-axis box if the y-scales are different and one tries to apply y-local zoom, all y scales are the same.


Reproducible: Always

Steps to Reproduce:
1. Load ADIFR, BDIFR and CNTEMP against time_offset from the GOTEX.C130_N130AR.LRT.RF06.PNI.nc netCDF sample (look for netCDF samples on Google) into 3 plots in one column
2. Create a shared x-axis box for the 3 plots: the initial plots are OK
3. Select tied zoom, X-only and zoom into the x range [500;1000]: it still looks OK
4. RMB->Zoom->Y-Zoom Local Maximum1.

Actual Results:  
All plots get the same Y scale

Expected Results:  
Each plot gets its own correct y scale 

I don't have data at hand to test it, but possibly there is a symmetrical problem with y-axis shared boxes.
Comment 1 Netterfield 2012-04-19 13:50:59 UTC
SVN commit 1290378 by netterfield:

Fix zoom y local maximum bug in tied shared axis boxes.


 M  +1 -0      libkst/datasource.h  
 M  +2 -2      libkstapp/plotitem.cpp  
 M  +8 -28     libkstapp/sharedaxisboxitem.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1290378