Zoom Tool¶
In Qwt6, QwtPlotZoomer required specifying two axes for zoom operations. If your plot needed all four axes to work, you had to bind two zoomers to the plot:
1 2 3 | |
To solve this problem, the new version introduces the following refactoring:
QwtPlotAxisZoomer- A rename of the originalQwtPlotZoomer, representing a zoomer bound to two specific axesQwtPlotCanvasZoomer- A new zoomer that does not require specifying axes and performs overall zoom on the entire canvas
Zoomer Feature Comparison¶
Below is a feature comparison of these two zoomers:
| Feature | QwtPlotAxisZoomer |
QwtPlotCanvasZoomer |
|---|---|---|
| Axis Binding | Requires specifying X and Y axes | Automatically handles all four axes |
| Use Case | Specific axis zoom | Overall canvas zoom |
| Parasite Plot Support | Requires manual binding | Automatically supports all parasite plots |
Usage Examples¶
QwtPlotAxisZoomer and QwtPlotCanvasZoomer have the same usage pattern, with the difference being that QwtPlotCanvasZoomer does not require specifying axes.
QwtPlotAxisZoomer Usage Example¶
1 2 3 4 5 6 7 8 9 10 11 12 | |
QwtPlotCanvasZoomer Usage Example¶
1 2 3 4 | |
Key Settings Description¶
Default Key Bindings¶
Mouse Operations¶
| Operation | Default Button | Description |
|---|---|---|
| Zoom Selection | Left button drag | Select rectangular area for zooming |
| Back to Base | Right button click | Zoom to base view (fully zoomed out) |
| Step Back | Middle button click | Step back one zoom level |
| Step Forward | Middle+Shift click | Step forward one zoom level |
Keyboard Operations¶
| Operation | Default Key | Description |
|---|---|---|
| Step Forward | + |
Step forward one zoom level |
| Step Back | - |
Step back one zoom level |
| Back to Base | Escape |
Return to base view |
Custom Key Configuration¶
You can configure shortcuts using the following predefined button configurations.
The following mouse shortcuts are supported:
- MouseSelect2: Reset to base
- MouseSelect3: Zoom stack back
- MouseSelect6: Zoom stack forward
The following keyboard shortcuts are supported:
- KeyUndo: Zoom stack back
- KeyRedo: Zoom stack forward
- KeyHome: Reset to base
1 2 3 4 5 6 7 8 | |