Commit Graph

1823 Commits

Author SHA1 Message Date
2xB
ed6586c7dd Removed unnecessary enlargement of bounding box (#1048) 2019-09-30 09:15:03 -07:00
Kenneth Lyons
61ec73a741 Close windows at the end of test functions (#1042)
* Close windows at the end of test functions

* Can't show window deletion warning during interpreter shutdown
starting
2019-09-27 13:37:40 -07:00
Mi!
071e429535 makeRGBA/ImageItem: Applying alpha mask on numpy.nan data values (#406)
* Applying alpha mask on numpy.nan data values

* Typesafe, checking for `data.dtype.kind`
2019-09-27 13:31:47 -07:00
2xB
96a4270a30 Fix HistogramLUTWidget with background parameter (#953)
* Fix HistogramLUTWidget with background parameter

HistogramLUTWidget cannot be initialized with the `background` parameter, because all parameters are also passed to the constructor of HistogramLUTItem which does not have a `background` parameter. This pull request fixes that issue by defining `background` explicitly as parameter in the function header.

Closes #175

* Added test for HistogramLUTWidget initialization with background

* Fixed Python2 compatibility

* Do not pg.exit() after test

* Moved test_histogramlutwidget to widget tests
2019-09-27 13:02:54 -07:00
Daniel Hrisca
aa3a5d3995 remote legacy work-around for old numpy errors (#1046)
* remote legacy work-around for old numpy errors

* forgot to remove the numpy_fix import

* require numyp >= 1.8.0
2019-09-26 10:08:43 -07:00
Kenneth Lyons
3ae58a065e
Merge pull request #1045 from ixjlyons/fix-525
Raise AttributeError in __getattr__
2019-09-25 17:57:12 -07:00
Kenneth Lyons
b57d45df6d The lazier way 2019-09-23 21:25:52 -07:00
Kenneth Lyons
ed264802a2 Raise AttributeError in __getattr__ 2019-09-23 21:19:01 -07:00
Kenneth Lyons
c9d27dc153
Merge pull request #1044 from ixjlyons/plotcurveitem-paintgl-fix
Fix PlotCurveItem.paintGL
2019-09-22 17:21:03 -07:00
Kenneth Lyons
b7f1aa88cd Cast to int after division 2019-09-22 17:03:30 -07:00
lidstrom83
df28c41d4b Make DockArea compatible with Qt Designer (#158) 2019-09-13 23:08:28 -07:00
Aikhjarto
8c137a1caf fix: circular texture was slightly off-center (#1012) 2019-09-13 22:12:23 -07:00
Kenneth Lyons
c94b1cb99e Always update transform when setting angle of a TextItem (#970)
* Always update transform when setting angle of a TextItem

* Add test to check TextItem.setAngle

* Relax test a bit but still check that setAngle has an effect

* Add docstring to setAngle

* Remove unneeded numpy testing function imports
2019-09-13 22:04:48 -07:00
Kenneth Lyons
fc9768be3c
Merge pull request #356 from QuLogic/np-warnings
Fix some NumPy warnings
2019-09-12 22:36:55 -07:00
Elliott Sales de Andrade
2e90089890 Fix undefined reduce call. 2019-09-13 01:07:57 -04:00
Elliott Sales de Andrade
d726a9693e Fix UnboundLocalError in VideoSpeedTest. 2019-09-13 01:07:57 -04:00
Elliott Sales de Andrade
3edbef6c57 Ensure exported images use integer dimensions.
It seems that the parameter tree doesn't enforce the int type very
strongly.

Also, use some local variables more often.
2019-09-13 01:07:57 -04:00
2xB
061a30e827 Correctly include SI units for log AxisItems (#972) 2019-09-12 21:58:49 -07:00
2xB
bfd36dc203 Prevent element-wise string comparison (code by @flutefreak7) (#1024) 2019-09-12 21:30:39 -07:00
2xB
8309b53014 Fix: Reset ParentItem to None on removing from PlotItem/ViewBox (#1031) 2019-09-12 21:00:38 -07:00
miranis
e3884ebd20 Update GraphicsScene.py (#599)
In lines 174 and 191 cev[0] is being accessed when cev is an empty list. I get this error when inheriting from GraphicsLayoutWidget and overloading mouseDoubleClickEvent.
2019-09-12 20:24:48 -07:00
Jindřich Makovička
bbc11b96a9 Configurable GridItem tick spacing and pen color (#101) 2019-09-12 14:50:43 -07:00
Ogi Moore
584c4516f0
Expand CI + pre-commit (#991)
* Initial attempt at extra checks in CI land

* Adding flake8 config

* Adding pre-commit configuration and explanation in CONTRIBUTING.md
2019-08-29 13:56:25 -07:00
Paul Debus
fd11e1352d fix encoding error in checkOpenGLVersion (#787) 2019-08-18 12:16:31 -07:00
2xB
80f8af2432 Use Qt5 QWheelEvent functions if necessary (#924)
* Make QWheelEvent code consistently compatible with Qt5

* Add documentation

* Removed old TODO message

* Init remote QWheelEvent only with relative position, minor code simplifications

* RemoteGraphicsView Renderer assumes to be at (0,0)

* Orientation serialized as boolean
2019-08-18 10:17:34 -07:00
Pepijn Kenter
3a863fff9a Fixes incorrect default value for scale parameter in makeARGB. (#793)
* Fix incorrect default value for scale paremter in makeARGB.

* update tests to pass with codebase change
2019-08-17 22:19:11 -07:00
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
Kenneth Lyons
ad7453c781
Merge pull request #989 from ziqiangxu/patch-2
Fix typo
2019-07-10 10:45:55 -07:00
Daryl.Xu
a38bdc06de
Fix typo 2019-07-10 10:38:04 +08:00