Commit Graph

2383 Commits

Author SHA1 Message Date
Ogi Moore
db20067e72
Merge pull request #966 from j9ac9k/skip-opengl-macos-py27-qt4
Skip GL* examples if on macOS with python2 and qt4 bindings
2019-06-26 09:48:13 -07:00
Ogi Moore
78df356c74
Merge pull request #962 from j9ac9k/ixjlyons-fix-exit-oserror
fix-exit-oserror
2019-06-26 00:00:50 -07:00
Ogi Moore
f4a5ca0122
Merge pull request #963 from ixjlyons/fix-298
Allow last image in stack to be selected by slider in ImageView
2019-06-26 00:00:06 -07:00
Kenneth Lyons
26963ffbc4 Fix pg.exit test in case pyqtgraph is not installed 2019-06-25 23:20:28 -07:00
Ogi
fe637512b5 Skip GL* examples if on macOS with python2 and qt4 bindings, and update readme 2019-06-25 23:05:38 -07:00
Ogi Moore
650b551b7a
Merge pull request #965 from j9ac9k/fix-964
Preventing conda from updating in CI builds
2019-06-25 22:45:45 -07:00
Ogi
a04d31731d Preventing conda from updating 2019-06-25 22:06:36 -07:00
Kenneth Lyons
55d9e8888b Allow last image in stack to be selected by slider in ImageView 2019-06-25 16:46:01 -07:00
Dschoni
cd2b16dbae
Merge pull request #782 from spauka/fix_fforward_spin
Terminate FileForwarder thread on process end
2019-06-25 17:04:53 +02:00
Ogi Moore
f3ab88001d
Merge pull request #960 from ixjlyons/fix-busycursor-pyside
Work around PySide setOverrideCursor bug in BusyCursor
2019-06-24 16:04:37 -07:00
Kenneth Lyons
8067ee25d5 Work around PySide setOverrideCursor bug in BusyCursor 2019-06-24 15:39:12 -07:00
fake-name
8fa6410382 Moar dumb typos. I managed to totally bugger up the rebase. 2019-06-24 14:14:04 -07:00
fake-name
14925b7fe3 Gah, forgot to add this. 2019-06-24 14:11:54 -07:00
fake-name
3f71276ac3 Fix more mkPen invocations that got added for some reason. 2019-06-24 14:02:19 -07:00
fake-name
18999c2ca1 Consolidate to simpler get is not none check. 2019-06-24 14:01:53 -07:00
Connor Wolf
17e90af36c Avoid constructing shadow pens when no shadow pen is set
Basically, profiling has pointed me to the fact that a fair bit of code time is spent in `setShadowPen()` (actually, it's in `mkPen()`, which `setShadowPen()` calls), even when no shadow pen is specified.

In my application, I'm calling `pyqtgraph.PlotDataItem.setdata()`, which calls through PlotDataItem->setData, PlotDataItem->updateItems. At some point in the call stack, the default value for `shadowPen` is being inserted into the kwargs, which then causes the specious calling of setShadowPen.

Anyways, if we check if shadowPen is a value other then none, this doesn't happen.
2019-06-24 14:01:17 -07:00
Ogi Moore
a4fe86a52d
Merge pull request #956 from ixjlyons/fix-exit-oserror
Handle invalid file descriptor in exit
2019-06-24 11:15:11 -07:00
Kenneth Lyons
c210795cac Add test for exit function 2019-06-24 10:47:35 -07:00
Sam Schott
d870a34359 add a test for clipping 2019-06-24 14:49:32 +01:00
Eugene Prilepin
1955ae024c Fix: object has no attribute 'border' 2019-06-24 16:36:23 +03:00
Eugene Prilepin
001390c160 Bugfix: GraphicsLayout border drawing
- Fixed border overlapping (issue #316)
2019-06-24 16:21:00 +03:00
Eugene Prilepin
b491f82006 Bugfix: ViewBox border drawing
- Fixed border overlapping (issue #316)
- Added new method ViewBox.setBorder to complete API
2019-06-24 16:21:00 +03:00
Sam Schott
262004e2ec Merge remote-tracking branch 'upstream/develop' into patch-3 2019-06-24 13:54:08 +01:00
Sam Schott
f23889d594 only use np.searchsorted quicker method fails 2019-06-24 13:53:00 +01:00
Ogi Moore
7506ee3d3f
Add mesa drivers to windows CI images and show openGL info during debug stage (#954)
Add mesa drivers to Windows CI Image
2019-06-23 23:03:51 -07:00
Ogi Moore
053fca6e83
Revert "_updateMaxTextSize to reduce text size when no longer needed (#838)" (#957)
This reverts commit 0ba07300e1.
2019-06-23 21:41:20 -07:00
SamSchott
0ba07300e1 _updateMaxTextSize to reduce text size when no longer needed (#838)
Currently `_updateMaxTextSize ` will increase the current space required for axis labels, if necessary, but not decrease it when the extra space is no longer needed. The proposed change will release no longer needed space again.
2019-06-23 18:10:35 -07:00
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