forked from pyqtgraph/pyqtgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce API option to control whether lines are drawn as segmented …
…lines (pyqtgraph#2185) * Introduce API option to control whether lines are drawn as segmented lines - Adds a global options to set mode for drawing segmented lines - Mode can be 'auto' (use existing method), 'on' (always draw segmented lines), 'off' (never draw segmented lines) - Global option can be overridden for given ``PlotCurveItem`` instance using new setter method - **This is a proposal!** Added activation of anti-aliasing as criterion to decide whether to draw segmented lines in 'auto' mode * Added segmented line mode as option to `examples/PlotSpeedTest.py` Included 'segmentedLineMode' as argument to `setData` method in `PlotCurveItem.py` * Change of segmented line mode in `PlotSpeedTest.py` implemented analogue to pen options * Removed option to set segmentedLineMode through setData keyword Signed-off-by: Sietze van Buuren <[email protected]> * Segmented line mode option now also accepts booleans `True` (same as `'on'`) and `False` (same as `'off'`) as possible modes * Removed `True`/`False` option possibilities for segmentedLineMode in `PlotCurveItem.py` Added documentation to `config_options.rst` for global option segmentedLineMode
- Loading branch information
1 parent
e0b3a30
commit 1dd6b9d
Showing
4 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters