Commit Graph

2256 Commits

Author SHA1 Message Date
Daniel Hrisca
297e1d95a5 avoid double call to mkPen when creating PlotCurveItem objects (#817)
* avoid double call to mkPen when creating PlotCurveItem objects

* avoid unnecessary calls to mkPen in paint
2019-06-23 17:30:40 -07:00
SamSchott
3e7cace746 tickSpacing bug fix (#836)
Fixed a bug where `tickSpacing()` would return `None` if `style['maxTickLevel'] < 2`, resulting in the axis not being drawn.
2019-06-23 17:27:16 -07:00
SamSchott
1b6537b241 Curve fill: draw line around patch (#922) 2019-06-23 17:07:55 -07:00
Ben Mathews
dea8a86dfd Fixes https://github.com/pyqtgraph/pyqtgraph/issues/950 (#951)
Moving a scale handle on a ROI object does not fire a sigRegionChangeStarted signal.  This patch adds the signal emit to handleMoveStarted().
2019-06-23 17:05:11 -07:00
2xB
e510971d71 RotateFree handle now rotates freely (Code by alguryanow) (#952) 2019-06-23 17:01:32 -07:00
Kenneth Lyons
563083cf86 Handle invalid file descriptor in exit 2019-06-23 12:14:52 -07:00
Kenneth Lyons
9653254094 Fix infinite scale in makeARGB (#955) 2019-06-23 09:38:48 -07:00
2xB
9500f4db01 Allow multiline parameters in configparser (#949)
* FIX: Exception.message does not exist in Python3

* FIX: Allow multiline configfile parameters

* Added configparser tests

* Reasonable file ending for test files
2019-06-22 22:17:14 -07:00
2xB
edf2942010 Replaced usage of deprecated ROI classes in example (#946) 2019-06-21 21:19:02 -07:00
2xB
781e129725 Fix deprecation warning of multi-dimensional tuples (#947) 2019-06-21 21:18:12 -07:00
2xB
0264dd40cd Added pytest-faulthandler to Travis (#945) 2019-06-21 16:52:11 -07:00
2xB
5238c097d5 Update Travis according to new xvfb syntax (#944) 2019-06-21 12:54:04 -07:00
Ogi Moore
0cc4900d7a
Skip some test examples (#937)
* Skip RemoteSpeedTest.py during testing
* Skip `optics_demos.py` test on PySide 1. 2.4  due to documented pyside bug
2019-06-21 08:36:42 -07:00
Ogi Moore
132f417f72
Merge pull request #935 from 2xB/addLine-fix70
PlotItem.addLine now accepts 'pos' and 'angle' parameters
2019-06-20 09:18:57 -07:00
Ogi Moore
2f4ac51a11
Check if items having events sent to are still in the scene (#919)
Check if items having events sent to are still in the scene
2019-06-19 22:08:54 -07:00
Janez Demšar
9b8ef188a5 Fix incorrect clipping of horizontal axis when stopAxisAtTick is set (#932)
Horizontal axis are clipeed incorrectly because the code always takes
the vertical coordinate of the span even if the axis is horizontal.
2019-06-19 22:07:57 -07:00
Ogi Moore
f239276cdc
Merge pull request #934 from 2xB/patch-10
Write Python representation of path to Python file
2019-06-19 22:03:28 -07:00
2xB
04baa6eef7
addLine now accepts 'pos' and 'angle' parameters
The issue and this solution are discussed in issue https://github.com/pyqtgraph/pyqtgraph/issues/70.
2019-06-20 04:37:09 +02:00
2xB
fa2a03b8ec
Write Python representation of path to Python file
Before, if the path contained escaped sequences, they would be parsed before being written to `reload_test_mod.py`, therefore when the file was parsed by the Python interpreter, the escape signs would be missing. With this commit, the Python representation is written to the file, so escaped sequences stay escaped.
2019-06-18 20:14:51 +02:00
Ogi Moore
6632355719
Merge pull request #921 from 2xB/patch-9
Prevent element-wise string comparison
2019-06-17 10:22:16 -07:00
2xB
4a592ef10e
Prevent element-wise string comparison
Issue #835 shows that comparing `bins`, which may be a numpy array, with a string `'auto'` leads to element-wise comparison, because the `==` operator for numpy arrays is used. With this commit, potential array and string are switched, so the `==` operator for strings is used, which does no element-wise comparison.
2019-06-17 19:10:32 +02:00
Ogi Moore
7b47337eaf
Merge pull request #918 from j9ac9k/small-test-fixes
README, CONTRIBUTING changes, slight changes to azure CI template and tox.ini
2019-06-12 23:05:53 -07:00
Ogi
ed3a039d23 Testing segfault potential fix 2019-06-11 23:01:24 -07:00
Ogi
f359449715 README and CONTRIBUTING update 2019-06-10 22:39:38 -07:00
Ogi Moore
9b012835ce
Merge pull request #911 from j9ac9k/overhaul-testexamples
Overhaul testExamples
2019-06-10 22:30:31 -07:00
Ogi
f05ff6fbf9 Restore duplicate entries in examples app, but test_examples does not duplicate tests 2019-06-10 21:20:31 -07:00
Ogi Moore
10328817c7
Merge pull request #445 from eendebakpt/feat/remotewarning
add warnings for remote exceptions
2019-06-10 08:53:06 -07:00
Ogi Moore
3482a8436c
Merge pull request #914 from j9ac9k/fix-lastScene-signal-reference
Fix attribute lookup reference
2019-06-09 18:24:58 -07:00
Ogi
5c44d51d6c remove resolution test, have display information printed during debug step 2019-06-09 16:25:22 -07:00
Ogi Moore
172120106d
Merge pull request #861 from ixjlyons/errorbaritem-set-path
Set path attr in case ErrorBarItem initialized without data
2019-06-09 09:23:36 -07:00
Kenneth Lyons
c5126dc26f Update test name. Cleanup unused imports. 2019-06-09 09:12:01 -07:00
Ogi
2462195991 Call pytest directly, ignore specific warnings, fix azure template labeling 2019-06-08 21:22:07 -07:00
Kenneth Lyons
0c84234612 Add a test for ErrorBarItem 2019-06-08 19:57:53 -07:00
Ogi
9f7a4423af Fix attribute lookup reference 2019-06-07 15:06:59 -07:00
Ogi Moore
a838e0267f
Merge pull request #473 from tmtnslt/patch-1
Correct wrong function call in LayoutWidget.addLabel and LayoutWidget…
2019-06-07 14:39:12 -07:00
Kenneth Lyons
1839c5ef59
More concise visibility setting logic 2019-06-07 13:32:25 -07:00
Kenneth Lyons
a2fb00633a DeMorgans the logic for better readability. 2019-06-07 00:00:30 -07:00
Kenneth Lyons
654b76e6a3 Handle setting/clearing data a little more robustly. 2019-06-06 23:57:34 -07:00
Kenneth Lyons
501ad4f082 Only set visible when ErrorBarItem has something to draw. 2019-06-06 23:45:28 -07:00
Ogi Moore
a51ff8eb61
Merge pull request #134 from cjtk/develop
Fix bug in LayoutWidget.py getWidget (self.rows, not self.row)
2019-06-06 15:58:17 -07:00
Ogi Moore
ecbbb8232a
Merge pull request #910 from jetperch/develop
Moved emits after all method state updates
2019-06-06 11:48:44 -07:00
Ogi Moore
4a33f24582
Merge pull request #770 from cklb/develop
Fix issue #481 - `setCameraPosition` in `GLViewWiedget` ignored `pos` argument
2019-06-04 13:29:26 -07:00
Ogi Moore
cd857dbf2f
Merge pull request #778 from hoatd/patch-1
Fix bug in GLViewWidget.py
2019-06-04 13:24:14 -07:00
Ogi Moore
2552be986f
Merge pull request #901 from ksunden/reload
Add condition for namespace packages
2019-06-04 10:01:57 -07:00
Ogi
be0e95ace7 Incorporating requested changes 2019-06-03 20:49:31 -07:00
Ogi
9f66b7dc6e Much better error reporting/tracepacks on examples 2019-06-02 22:16:35 -07:00
Ogi
d2331bde7f Removing duplicate entries 2019-06-01 22:36:29 -07:00
Ogi
5ff409ba4b Move example test code such that pytest is required 2019-06-01 22:36:11 -07:00
Matt Liberty
c52382c3b9 Moved emits after all method state updates since PySide2 immediately executes signals.
Pull request #907 addressed a specific case where a signal was emitted before a state update.
If an application's slot then calls back into the instance, the instance was in an inconsistent
state.  This commit audits and fixes similar issues throughout the pyqtgraph library.  This
commit fixes several latent issues:

* SignalProxy: flush -> sigDelayed -> signalReceived would have incorrectly resulted in timer.stop().
* ViewBox: resizeEvent -> sigStateChange -> background state
* ViewBox: setRange -> sigStateChange -> autoranging not updated correctly
* ViewBox: updateMatrix -> sigTransformChanged -> any _matrixNeedsUpdate = True -> ignored
* Parameter: Child may have missed state tree messages on insert or received extra on remove
* GraphicsView: updateMatrix -> sigDeviceRangeChanged/sigDeviceTransformChange -> before propagated to locked viewports.
2019-06-01 16:28:23 -04:00
Ogi Moore
eb90616ae2
Merge pull request #905 from 2xB/test_exclude_examples
Exclude selected examples from tests (such as HDF5)
2019-05-31 22:28:54 -07:00