Bug 394771

Summary: Changing y-range in a shared axis box plot affects y-range of other x-tied plots
Product: [Applications] kst Reporter: manumail
Component: plottingAssignee: kst
Status: RESOLVED FIXED    
Severity: normal CC: netterfield
Priority: NOR    
Version: 2.0.8   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description manumail 2018-05-27 22:50:35 UTC
What I did:
- create three plots, and place two in a shared axis box
- tie x-zoom for all three plots (Ctrl-t)
- click on one plot in the shared axis box to select it, and press e-key
- in "edit plot item" dialog, goto "Range/Zoom" page, check "Y Zoom Mode" = fixed and change the range values, click ok

What I expected to happen:
- the y-axis range of the selected plot should change to the new values

What actually happened:
- the y-axis range of all three plots changed to the new values


The problem seems to dissapear if I remove following lines from method 
void SharedAxisBoxItem::zoomYRange(const QRectF &projection, PlotItem* originPlotItem):
foreach(PlotItem* plotItem, plotTied) {
  plotItem->zoomYRange(projection, true);
}

I would like to use the shared axis box for plotting 10 to 20 binary signals in one box, and have another plot on the tab showing signals with wider range, so the shared axis is really good to save a lot of space!
Comment 1 Netterfield 2018-09-12 19:13:44 UTC
Fixed with commit that fixed 394742