Bug 394771 - Changing y-range in a shared axis box plot affects y-range of other x-tied plots
Summary: Changing y-range in a shared axis box plot affects y-range of other x-tied plots
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: plotting (show other bugs)
Version: 2.0.8
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-27 22:50 UTC by manumail
Modified: 2018-09-12 19:13 UTC (History)
1 user (show)

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 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