Commit Graph

1307 Commits

Author SHA1 Message Date
2xB
31f1ae586b Fix: Allow wrapped GraphicsLayoutWidget to be deleted before its wrapping Python object (#1022) 2019-08-17 20:43:21 -07:00
2xB
ff30a82298 Fix: colormap: Support various arguments as color (#1014)
* colormap: Support various arguments as color

* Using mapping for speed and consistency (suggested by @j9ac9k)
2019-08-17 20:38:05 -07:00
2xB
b7b431de8d FIX: Curves are automatically set visible when one is deleted (#987)
* Do not automatically set all curves visible

* Improved array iteration in PlotItem.updateDecimation
2019-08-17 20:36:34 -07:00
2xB
d77ad273c7 Fix: Item on ViewBox causes duplicate paint calls (#1017)
* Fix: Item on ViewBox causes duplicate paint calls

* Assure call of ViewBox.updateMatrix on resizeEvent

* Fix: Disable autorange on "ViewBox.setRange" before updateAutoRange is called
(Called via updateViewRange -> update -> prepareForPaint)
2019-08-17 11:52:45 -07:00
2xB
05aa3e9393 Add 'fillOutline' option to draw an outline around a filled area (#999) 2019-08-17 09:57:40 -07:00
2xB
cd3f7fd68e Adding setter for GLGridItem.color (#992)
* adding option to set grid color on demand

* Update after setColor

* Made GLGridItem color attribute private

* Init GLGridItem color with fn.Color

* Added docstring
2019-08-17 09:55:55 -07:00
2xB
08c0de768b Warn if visible GraphicsView is garbage collected (#942)
* Warn if visible window is garbage collected

* (Py)Qt does not rely on Python GC

* Only warn if deleted widget has no parents (if it is a standalone window)

* Hide windows when closing

* Only implement GraphicsView.__del__ if it does not prevent circular reference garbage collection
2019-08-16 22:32:06 -07:00
Ogi Moore
7b70d66c6a
Merge pull request #974 from 2xB/fix-296-2
FIX: RecursionError when instanciating CtrlNode
2019-08-16 21:43:32 -07:00
Ogi Moore
67433a1451
Merge pull request #998 from 2xB/fix_461
Fix QtProcess proxy transmitting small multidimensional arrays
2019-08-16 21:21:46 -07:00
Ogi Moore
750ec5a1f9
Merge pull request #996 from kevinanewman/patch-1
Update LegendItem.py
2019-08-16 21:19:18 -07:00
Ogi Moore
b7a3237361
Merge pull request #1010 from Axel-Jacobsen/develop
BarGraphItem CSV/image export
2019-08-16 20:42:58 -07:00
Ogi Moore
9bb82a8af2
Merge pull request #1015 from 2xB/always_nparray
Always convert PlotDataItem data to NumPy array
2019-08-16 20:29:06 -07:00
Ogi Moore
273757fa4b
Merge pull request #1016 from 2xB/fix-862
Fix: ImageView sigTimeChanged was only emitted on mouse interaction
2019-08-16 20:28:02 -07:00
Ogi Moore
eb7baa3855
Merge pull request #1019 from 2xB/fix-1018
Fix: GLScatterPlotItem and GLImageItem initializeGL only executed once
2019-08-16 20:19:31 -07:00
2xB
8d2c16901b Merge master into develop (#981)
* Information is spelled with an r, even in comments
2019-08-16 20:16:01 -07:00
2xB
652ae9e64a Fix: GLScatterPlotItem and GLImageItem initializeGL only executed once 2019-08-15 02:41:51 +02:00
2xB
4e6629f352 Fix: ImageView sigTimeChanged was only emitted on mouse interaction 2019-08-08 17:39:11 +02:00
2xB
abd028436a Always convert PlotDataItem data to NumPy array 2019-08-08 16:58:28 +02:00
Axel Jacobsen
27d94cae92 enforce utf-8 encoding for casting QByteArray to str
remove print statements
2019-08-06 12:00:31 -07:00
Axel Jacobsen
18661cab0d BarGraphItem CSV export and documentation 2019-08-06 09:32:43 -07:00
2xB
a655e974ff Call multiprocess.connection.Connection.send_bytes with bytes 2019-07-20 20:33:11 +02:00
Kevin Newman
6648db031e
Update LegendItem.py
Propose adding a clear() method (or equivalent) for easier legend re-use with dynamically updated plots...
2019-07-17 08:37:16 -04:00
Daniel Hrisca
73c440a4db remove deprecated call to time.clock (#980)
remove deprecated call to time.clock for python3
2019-07-02 07:01:32 -04:00
Luke Campagnola
138fdd0af2 relax image comparison for failing windows test (#979)
relax image comparison for failing windows test
2019-07-02 06:57:45 -04:00
Luke Campagnola
cff9cfa98d Reduce test window size for OSX compatibility 2019-07-01 19:00:18 -07:00
Ogi Moore
04114fa126
Merge pull request #968 from ecejeff/unit-label-fix
Fix for AxisItem using old scale to create label
2019-07-01 07:01:05 -07:00
2xB
a4cecf4a22 Call parent __init__ as soon as possible for CtrlNode 2019-06-30 17:50:11 +02:00
Fernando
caf7378f38 FIX: fix disconnect method of SignalProxy class. 2019-06-28 10:59:03 -03:00
Billy SU
23b4e174f0 Add Dock test and remove outdated comments (#659)
* Add test for Dock closable arg

* Remove outdated and debug comments

* Add test for hideTitle dock
2019-06-27 21:51:54 -07:00
2xB
c37956b29a Corrected documentation for heightColor shader 2019-06-28 01:51:20 +02:00
Ogi Moore
18bfee3462
Merge pull request #333 from ombschervister/legend_fix
fix legendItem drag
2019-06-27 14:44:55 -07:00
Jeffrey Nichols
d9f0da5a7c
Fix for AxisItem using old scale to create label 2019-06-27 14:45:37 -04:00
Ogi Moore
82d690e08d
Merge pull request #321 from espdev/fix-issue316
Fixing the border rect overlapping for ViewBox and GraphicsLayout
2019-06-26 22:33:21 -07:00
Ogi Moore
7f327329f4
Merge pull request #840 from OE-FET/patch-3
Clipping: don't assume that x-values have uniform spacing
2019-06-26 22:29:31 -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
Kenneth Lyons
26963ffbc4 Fix pg.exit test in case pyqtgraph is not installed 2019-06-25 23:20:28 -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
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
781e129725 Fix deprecation warning of multi-dimensional tuples (#947) 2019-06-21 21:18:12 -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
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
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 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
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
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
e7cbc12491
Merge pull request #813 from danielhrisca/axisitem_tweak
AxisItem performance improvements
2019-05-31 22:16:46 -07:00
Ogi Moore
99480dd184
Merge pull request #907 from jetperch/develop
Fixed ViewBox.updateViewRange to apply transformation sooner
2019-05-31 21:05:29 -07:00
Ogi Moore
1616e99b3a Fix docstring warning 2019-05-30 14:40:39 -07:00
Ogi
2df71abfec We support pyside2 don't we? 2019-05-30 14:40:39 -07:00
Ogi
f2426e9dd2 Capture Screenshots 2019-05-30 14:40:39 -07:00
Matt Liberty
b3c0bf635d Fixed ViewBox.updateViewRange so that transformation is updated for sigXRangeChanged and sigYRangeChanged in PySide2. 2019-05-29 20:02:00 -04:00
Luke Campagnola
52fef555ee
Merge pull request #904 from j9ac9k/take-screenshots
Take screenshots + Show Resolution
2019-05-29 13:12:12 -07:00
Ogi Moore
4b26519fef Move Desktop Resolution info print statement to test.py 2019-05-29 13:07:08 -07:00
Ogi Moore
c4e295ceae Use correct path seperators, pass png to upload function 2019-05-29 10:53:04 -07:00
Ogi
aa63c07523 Show available desktop resolution 2019-05-28 22:57:12 -07:00
Ogi
e8854d69bb Capture Screenshots 2019-05-28 22:57:12 -07:00
Kenneth Lyons
08e92adcaa
Merge pull request #894 from j9ac9k/fix-svg-export
Simpler way of extracting types from QByteArray
2019-05-27 17:55:07 -07:00
ksunden
6a4e0a106f Add condition for namespace packages 2019-05-27 16:49:08 -05:00
Thomas A Caswell
f2909e0cfb
Merge pull request #893 from j9ac9k/fix-qt5-pxCount
PySide2 is also a Qt5 binding
2019-05-25 20:19:12 -04:00
Kenneth Lyons
deab37d533 Try to import from collections.abc for Python 3.3+ (#887)
* Try to import from collections.abc for Python 3.3+
2019-05-25 16:25:49 -07:00
Ogi
c69e04db2d Simpler way of extracting types from QByteArray
Simpler way of extracting bytes from QByteArray
2019-05-25 00:24:48 -07:00
Ogi
849c7cab55 PySide2 is also a Qt5 binding 2019-05-24 23:28:48 -07:00
Ogi Moore
957aab008c
Merge pull request #888 from pyqtgraph/py3-treewidget
TreeWidget.topLevelItems Python 3 fix
2019-05-24 22:53:36 -07:00
Ogi Moore
d5b31f6401
Merge pull request #886 from ixjlyons/py3-flowchart
Fix flowchart save on Python 3
2019-05-24 15:58:59 -07:00
Kenneth Lyons
95f4b00e14 TreeWidget.topLevelItems Python 3 fix 2019-05-23 23:56:53 -07:00
Ogi Moore
c71083fff8
Merge pull request #767 from jimofthecorn/develop
fixed bug in graphicsItems/ImageItem.py: degenerate images (max==min)
2019-05-23 23:33:27 -07:00
Ogi Moore
e338447c37
Merge pull request #771 from 2xB/logscale_noruntimewarning
No warning for arrays with zeros in logscale
2019-05-23 23:24:03 -07:00
Ogi Moore
66604593c1
Merge pull request #814 from danielhrisca/enforce_enableMenu
enforce enableMenu in ViewBox
2019-05-23 23:22:52 -07:00
Ogi Moore
9ca9ae3911
Merge pull request #815 from ZanSara/develop
Fix issue #811
2019-05-23 22:44:19 -07:00
Ogi Moore
95d62cec6a
Merge pull request #876 from Dschoni/Fix-deprecated-boolean-substract
Typecast Levels to be float
2019-05-23 22:26:21 -07:00
Ogi Moore
bc59457748
Merge pull request #875 from Dschoni/develop
Fix numpy deprecation warning by typecasting multi-dimension indices to tuples.
2019-05-23 22:02:33 -07:00
Ogi Moore
58ae027197
Merge pull request #378 from ben-github/develop
Fix issue with Python3 and changes in how it handles zip.
2019-05-23 21:54:43 -07:00
Ogi Moore
4a76fff11a
Merge pull request #417 from termim/PlotDataItem_clear
In PlotDataItem.clear() use corresponding curve.clear() and scatter.clear()
2019-05-23 21:52:50 -07:00
2xB
e2b01ccf74 FIX: Correct deletion of matplotlib exporter window object (#868)
E.g. when opening the Matplotlib exporter multiple times, and one closes one instance, Python crashes.
This is caused by the Matplotlib QMainWindow listening to the closeEvent and deleting the only reference of
the window before it is closed properly.
2019-05-23 21:35:01 -07:00
HappyTreeBeard
8420fe984a Fixed bug in unit test where temp file remained open when os.unlink was called (#832) 2019-05-23 21:33:23 -07:00
Kenneth Lyons
ffd1624cb9 Use defaultSuffix for smarter file extension handling. 2019-05-23 19:02:56 -07:00
Kenneth Lyons
fd134f77c6 Only append .fc file extension if not added in the file dialog. 2019-05-23 17:53:42 -07:00
Kenneth Lyons
5c3214105c Merge remote-tracking branch 'duguxy/py3-flowchart-sl' into py3-flowchart 2019-05-23 17:49:21 -07:00
Kyle Sunden
20c74954a5
Merge pull request #830 from tacaswell/mnt_future_proof_text
MNT: future-proof the code a bit
2019-05-22 19:24:57 -05:00
dschoni
bac8080b0c Typecast Levels to be float
This circumvents cases in which "levels" is a boolean array and therefore the substraction fails due to deprecation.
2019-05-21 14:14:10 +02:00
dschoni
7f93e8205f Found one more instance of the same warning in functions.py 2019-05-21 13:38:46 +02:00
dschoni
42fd5614d0 Fix deprecation warning of multi-dimension tuples 2019-05-21 13:38:34 +02:00
Ogi
afb665ec99 make use of shiboken2 directly for isValid method 2019-05-12 17:35:26 -07:00
Ogi
d873ee6b26 fixes ImportError on importing pysideuic 2019-05-12 17:31:12 -07:00
Ogi
aa50296b9f gc.collect() causes segfault on pyside2, test will pass on pyqt5 bindings (did not test pyqt4 or pyside1) 2019-05-12 17:30:40 -07:00
Kenneth Lyons
2817b95c93 Set path attr in case ErrorBarItem initialized without data 2019-05-03 18:45:15 -07:00
Luke Campagnola
51b3201564
Merge pull request #824 from ronpandolfi/develop
Fix for PySide2; QtCore.QPoint.__sub__ no longer works with tuples
2019-05-03 10:58:21 -07:00
SamSchott
365c13fedc
Clipping: don't assume that x-values have uniform spacing
Do not assume that x-values have uniform spacing -- this can cause problems especially with large datasets and non-uniform spacing (e.g., time-dependent readings from an instrument).

Use `np.searchsorted` instead to find the first and last data index in the view range. This only assumes that x-values are in ascending order. This prevents potentially too strong clipping.
2019-03-14 22:41:10 +00:00
Luke Campagnola
41107e4caa
expand docstring 2019-03-08 12:46:10 -08:00
Luke Campagnola
894c9a4362
move default handling up to colormapparameter 2019-03-08 12:33:14 -08:00
ALLENINST\stephanies
bafe1b4b74 group all defaults into one argument 2019-03-08 12:00:21 -08:00
ALLENINST\stephanies
fb098e9cdc add option to set other field variables in ColorMapWidget 2019-03-06 12:42:22 -08:00
Thomas A Caswell
da1bf54ec8
MNT: use raw for regular expression 2019-02-14 16:41:54 -05:00
Thomas A Caswell
0649ff8f3c
MNT: do not use 'is not' on literal
py38 raises a SyntaxWarning on this
2019-02-14 16:41:06 -05:00
Thomas A Caswell
4fe90bb215
MNT: escape docstrings that have rst escaping in them 2019-02-14 16:39:45 -05:00
Thomas A Caswell
691da09eb0
MNT: do not use 'is' with literals, use ==
py3.8 gives a syntax warning on this
2019-02-14 16:36:02 -05:00
ronpandolfi
e2ca71a65c Fix for PySide2; QtCore.QPoint.__sub__ no longer works with tuples 2019-02-01 19:44:54 -08:00
danielhrisca
82d2b757e4 speed up AxisItem __init__ 2019-01-18 10:32:10 +02:00
Sara Zanzottera
e4681b7201 Fix issue #811 2019-01-17 11:19:16 +01:00
danielhrisca
5a53539be0 enforce enableMenu in ViewBox 2019-01-16 17:04:59 +02:00
danielhrisca
b575b56edf avoid calling setLabel repeatedly for AxisItem 2019-01-16 16:44:00 +02:00
Luke Campagnola
2e69b9c5e6 Add changelog entry and credit for previous PR 2018-11-09 07:18:36 -08:00
Luke Campagnola
753c291bcd
Merge pull request #446 from WFrsh/develop
Included matplotlib 2.0 colormaps
2018-11-09 07:08:39 -08:00
Sebastian Pauka
482dd2ee33 Terminate FileForwarder thread on process end
Previously on windows the FileForwarder threads would
continue to run and eat up a lot of CPU once the child process
they were forwarding dies. This commit shuts down those threads
when the child process is killed.
2018-10-30 10:22:49 +11:00
Luke Campagnola
4285785985 Revert "Fixed AxisMouse drag issue"
The original change breaks mouse dragging directly on the axis

This reverts commit 9bfdda06a6.
2018-10-29 10:59:11 -07:00
Tran Duy Hoa
16616c77b7
Fix bug in GLViewWidget.py
call debug.printExc() instead of pyqtgraph.debug.printExc()
2018-10-26 23:06:23 +02:00
2xB
0f149f38c2
No warning for arrays with zeros in logscale
NumPy evaluates log10(0) to -inf, so there is no reason to show the user a RuntimeWarning. Before, if visualizing data arrays containing zeros in logscale, a RuntimeWarning was shown.
2018-10-14 18:49:03 +02:00
Stefan Ecklebe
fc5e0cd9f4 Fixed issue #481 2018-10-12 15:32:23 +02:00
Luke Campagnola
e62889d095
Merge pull request #763 from hhslepicka/fix_downsampling
FIX: Protection over downsampling calculation.
2018-10-11 16:09:23 +03:00
Jim Crowell
d261c2f0f2 fixed bug in graphicsItems/ImageItem.py: degenerate images (max==min) would raise exception in getHistogram() 2018-10-10 10:29:16 -04:00
Ezequiel (gac-esbmx) Panepucci
d550473ba7 import python2_3 for basestring 2018-10-09 09:37:04 +02:00
Hugo Slepicka
984eb5ed29 FIX: Protection over downsampling calculation. 2018-10-05 14:18:09 -07:00
Luke Campagnola
574c5f3a47
Merge pull request #565 from justengel/axis_mouse_drag
Fixed AxisItem mouse drag issue
2018-09-28 16:02:29 -07:00
Luke Campagnola
6b26245e50
Add explanatory comment 2018-09-28 16:02:14 -07:00
Luke Campagnola
efaf61f711
Merge pull request #541 from justengel/image_render_error
ImageItem render error if graph is too small.
2018-09-28 15:38:02 -07:00
Luke Campagnola
cce7a83e85
Merge pull request #530 from justengel/plot_item_update
Fixed issue where setData only updated opts if data is given
2018-09-28 15:35:27 -07:00
Luke Campagnola
839ad486f8 Flush shared memory file before attempting to map
This avoids the error "ValueError: mmap length is greater than file size"
on OSX. (see #730)
2018-09-11 07:14:28 -07:00
Luke Campagnola
f1b51027cc Fix error in ViewBox wheelEvent when mouse has 2-axis wheel events 2018-07-30 11:36:08 -07:00
Mikhail Terekhov
b13062f081 In PlotDataItem.clear() use corresponding curve.clear() and scatter.clear()
Otherwise when stepMode is True curve.setData([]) causes exception:
"len(X) must be len(Y)+1 ..."
2018-07-28 10:18:26 -04:00
Mikhail Terekhov
c238be004e add test case for the PlotDataItem.clear() in stepMode 2018-07-28 10:18:26 -04:00
Luke Campagnola
240889c460
Merge pull request #735 from campagnola/fix-exit-error
Fix exit error caused by callback invoked during Qt teardown
2018-07-26 09:37:47 -07:00
Luke Campagnola
6826e2615c Fix exit error caused by callback invoked during Qt teardown 2018-07-25 10:07:24 -07:00
David Nadlinger
fe7e1775da AxisItem: Fix tick elision with self.scale set
Previously, only the highest level ticks would be displayed
for e.g. scale = 1e3.
2018-07-11 15:31:29 +01:00
Luke Campagnola
ada79bffde
Merge pull request #718 from ales-erjavec/svg-export-exposed-rect
SVGExport: Initialize option.exposedRect for items that use it
2018-07-10 15:44:27 -07:00
Luke Campagnola
c3f612d6ca
Merge pull request #717 from campagnola/console-thread-exceptions
Make console handle exceptions from non-gui threads a little more carefully
2018-07-10 15:03:15 -07:00
Luke Campagnola
585390e16e fix: mouse wheel on viewbox leaves autorange unaffected if mouse is disabled for one axis 2018-07-10 05:23:53 -07:00
Ales Erjavec
56950479f9 SVGExport: Initialize option.exposedRect for items that use it 2018-07-06 15:53:28 +02:00
Luke Campagnola
f3583ed338 Make console handle exceptions from non-gui threads a little more carefully 2018-07-03 13:43:28 -07:00
Luke Campagnola
08349351da Fix QString handling 2018-06-22 17:31:58 -07:00
Luke Campagnola
3fd56eb195 Handle Qt4/5 API difference in filedialog 2018-06-22 17:26:31 -07:00
Luke Campagnola
c4a5ffa01c
Merge pull request #713 from campagnola/console-scrolling
Console scrolling
2018-06-20 13:13:23 -07:00
Luke Campagnola
b9f6a28884 Add ConsoleWidget.write(scrollToBottom) argument 2018-06-20 13:02:39 -07:00
Luke Campagnola
f2baf31d51 Fix console input up/down arrows
In some cases, pressing down past the end of the command history would not clear the input
2018-06-20 13:01:52 -07:00
Luke Campagnola
929123ff46 avoid repeated signal emission in filterwidget 2018-06-18 13:54:43 -07:00
Luke Campagnola
7bfc5106b2 Merge branch 'roi-mouse-interaction' into develop 2018-06-18 13:52:38 -07:00
Luke Campagnola
6a170519bf minor edits 2018-06-18 13:52:16 -07:00
Luke Campagnola
00cccb556d
Merge pull request #710 from campagnola/roi-mouse-interaction
Roi mouse interaction
2018-06-15 20:30:37 -07:00
Luke Campagnola
060d2479f9 minor fixes 2018-06-15 14:18:38 -07:00
Luke Campagnola
e78693631b Implement handle-free scale/rotation mouse interaction for ROI 2018-06-15 13:36:33 -07:00
Luke Campagnola
2d2e548f8e delegate ROI mouse drag handling to a separate class 2018-06-15 11:21:17 -07:00
Luke Campagnola
f1af0e065e
Merge pull request #707 from campagnola/plotitem-refactor
Plotitem refactor
2018-06-13 17:31:10 -07:00
Luke Campagnola
7be7c3f459 More PlotItem cleanup 2018-06-08 08:43:46 -07:00
Luke Campagnola
7358664414 Merge branch 'Refactor' of https://github.com/Billy4195/pyqtgraph into Billy4195-Refactor 2018-06-07 19:06:44 -07:00
Luke Campagnola
a38d2282cc
Merge pull request #657 from edbarnard/floating-dock-close
When a floating Dock window is closed, the dock is now returned home
2018-06-07 18:02:31 -07:00
Luke Campagnola
8dea72d03d
Merge pull request #705 from campagnola/fix-parameter-opts
Don't store `children` key in Parameter.opts
2018-06-07 17:56:09 -07:00
Luke Campagnola
c20022580d move panning code from mouse handler to pan() 2018-06-07 17:49:42 -07:00
Luke Campagnola
741e65c72e Merge branch 'panning' of https://github.com/dvj/pyqtgraph into dvj-panning 2018-06-05 15:25:52 -07:00
Luke Campagnola
937e3420e2 Don't store children key in Parameter.opts (closes #494, fixes #493) 2018-06-05 15:20:15 -07:00
Luke Campagnola
01c349e14b
Merge pull request #698 from polwel/issue-697
Fix issue #697
2018-06-01 21:39:02 -07:00
Pol Welter
d35991ec37 Fix issue #699
Nan in image data not handled properly
2018-06-01 15:05:14 +02:00
Pol Welter
a48a3776be Fix issue #697 2018-06-01 10:31:47 +02:00
Luke Campagnola
70398f7098 PR 693: Fix color handling in GLLinePlotItem
Merge branch 'koltafrickenfer-develop' into develop
2018-05-31 10:39:27 -07:00
Luke Campagnola
8a5c66f25e Allow strings to specify color of GLLinePlot 2018-05-31 10:36:04 -07:00
Luke Campagnola
0a17c2eb60 Merge branch 'develop' of https://github.com/koltafrickenfer/pyqtgraph into koltafrickenfer-develop 2018-05-31 10:30:11 -07:00
Luke Campagnola
c582fab9c6
Merge pull request #696 from campagnola/scatter-stepmode
Fix error when using PlotDataItem with both stepMode and symbol
2018-05-31 09:13:01 -07:00
Luke Campagnola
7792000abb
Merge pull request #661 from Billy4195/improve_test
Improve test
2018-05-30 19:03:28 -07:00
Luke Campagnola
de9007d9c4 Fix error when using PlotDataItem with both stepMode and symbol 2018-05-30 18:54:31 -07:00
Luke Campagnola
349625c875 Update version string to 0.11.0.dev0 and handling in setup
Merge commit '1a3a0a70930b' into version-update
2018-05-30 08:53:32 -07:00
kolt mcbride
e5079bca32 this import seems to be missing, I couldn't set color with out it for some reason 2018-05-24 22:06:27 -07:00
Luke Campagnola
0af4706024
Merge pull request #635 from campagnola/pyside2
WIP: PySide2 support
2018-05-24 17:14:11 -07:00