Commit Graph

120 Commits

Author SHA1 Message Date
zhujun98
7016d1c6c3 Fix arrayToPath
Use the correct format for streaming QByteArray to QPainterPath.
2020-06-28 21:23:06 +02:00
Ogi Moore
ecd0642ca9
Merge pull request #977 from campagnola/pseudoscatter-performance
Add a faster method for computing pseudoscatter
2020-06-13 21:08:33 -07:00
Maurice van der Pot
e18af48b8d
Implement headWidth parameter for arrows (#385)
Although the documentation used to say that specifying tipAngle would
override headWidth, headWidth was never used. The new behaviour is that
tipAngle will be used, with a default value of 25, unless headWidth is
specified.

Co-authored-by: Ogi Moore <ognyan.moore@gmail.com>
2020-06-09 22:04:29 -07:00
alfon_news
fc7921100e
Fix siScale imprecision errors (#508)
* Fix siScale imprecision errors

* Implement 2xB suggested change

Co-authored-by: Alberto Fontán Correa <afontan@com.uvigo.es>
Co-authored-by: Ogi Moore <ognyan.moore@gmail.com>
2020-06-08 22:51:14 -07:00
Ogi Moore
d282f8aba8
Remove workaround for memory leak in QImage (#1223)
Co-authored-by: Ognyan Moore <omoore@sensoryinc.com>
2020-06-05 20:57:20 -07:00
Jan Kotanski
6f34da586d remove second nanMask = np.isnan(data) 2020-04-03 17:56:38 -07:00
Jan Kotanski
daeacad71f Make nanMask compatible with 3D data 2020-04-03 17:56:11 -07:00
Jan Kotanski
61967bd7f7 add nanfix 2020-04-03 17:49:34 -07:00
Kenneth Lyons
db67a256a9
Miscellaneous doc fixups (#1142)
* Miscellaneous doc cleanup

* Moved dockarea up a level (like flowchart, parametertree). Removed extraneous parametertree doc
2020-04-03 10:06:25 -07:00
Jan Kotanski
65d2ac58e0 fix for nextafter 2020-01-08 21:19:09 +01:00
Ogi Moore
71c4807559 fix dict eq() checks 2019-11-20 21:54:56 -08:00
Luke Campagnola
a8529e48f3 faster keys comparison 2019-11-20 21:54:56 -08:00
Luke Campagnola
7cb27594a5 fix dict keys comparison 2019-11-20 21:54:56 -08:00
Luke Campagnola
542f4b446b Add eq() support for comparing dict, list, tuple 2019-11-20 21:54:56 -08: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
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
8d2c16901b Merge master into develop (#981)
* Information is spelled with an r, even in comments
2019-08-16 20:16:01 -07:00
Luke Campagnola
dc9aa84ce3 Add a faster method for computing pseudoscatter 2019-07-01 18:30:00 -07:00
Kenneth Lyons
9653254094 Fix infinite scale in makeARGB (#955) 2019-06-23 09:38:48 -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
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
Luke Campagnola
66dcfc7c67 Merge branch 'develop' into pyside2 2018-05-22 15:22:54 -07:00
Luke Campagnola
60a48ed2e4 reload tests pass in python 3 2018-04-26 13:22:47 -07:00
Luke Campagnola
bc2c3232e2 Merge branch 'develop' into reload-updates 2018-04-26 11:08:33 -07:00
Luke Campagnola
e318bc041b Fix isosurface error: TypeError('only integer scalar arrays can be converted to a scalar index',) 2018-02-23 17:50:44 -08:00
Luke Campagnola
82afad8366 Fix up Qt.py and deprecate USE_XX variables 2018-02-16 20:42:34 -08:00
Luke Campagnola
46f10f24f8 Merge branch 'develop' of https://github.com/maxpeng/pyqtgraph into maxpeng-develop 2018-02-15 18:30:12 -08:00
Luke Campagnola
870c047d30
Merge pull request #621 from campagnola/rgb-histogram
Rgb histogram
2018-01-26 08:52:10 -08:00
Luke Campagnola
a812d802da Fix bug when spinbox units begin with an SI prefix (like 'PSI') 2018-01-24 09:12:10 -08:00
Luke Campagnola
0c28de5fd8 Fix subArray when input data is discontiguous 2017-10-04 10:24:34 -07:00
Luke Campagnola
9ef9f73be5 minor import and test corrections 2017-10-04 09:35:57 -07:00
Luke Campagnola
fcf4503671 Fix: avoid division by 0 when image is single valued 2017-10-02 08:58:03 -07:00
Luke Campagnola
7c9107fa5d use ndarray() strides argument to construct subarray
previously this was done manually (and imperfectly)
2017-09-29 08:45:33 -07:00
Luke Campagnola
aad1c737c3 eq(): better performance by avoiding array comparison when shapes do not match 2017-09-28 09:11:07 -07:00
Luke Campagnola
4b188c73b0 Add disconnect() and SignalBlock
- make it possible to retrieve previous versions of reloaded objects (needed by disconnect)
2017-09-06 09:09:35 -07:00
Luke Campagnola
9094261c54 Fix eq() bug where calling catch_warnings raised an AttributeError, which would cause eq() to return False
Add unit test coverage
2017-08-02 15:02:38 -07:00
Luke Campagnola
20e821c45e Merge pull request #478 from campagnola/HashSplat-develop
Fix QImage memory leak with PySide + Python3
2017-05-01 11:31:42 -07:00
Luke Campagnola
f6819dda28 Add comments explaining hack 2017-05-01 11:09:50 -07:00
Luke Campagnola
c44afa492a Merge pull request #477 from campagnola/fix-intcolor-value
Fix value stepping in intColor
2017-05-01 10:27:30 -07:00
Luke Campagnola
3f34ea12d8 Fix value stepping in intColor 2017-05-01 09:45:09 -07:00
Justin Engel
c247aa3989 Fixed PySide image memory leak
PySide has a known memory leak issue when using QImage. It does not handle the reference counter correctly. I manually adjusted the reference counter to the data as suggested in a bug report by Neil Whelchel. This bug report can be found at https://bugreports.qt.io/browse/PYSIDE-140
2017-04-11 10:32:43 -04:00
Luke Campagnola
504c35202a Merge pull request #410 from campagnola/spinbox-formatting
Spinbox formatting
2017-01-14 11:09:51 -08:00
Luke Campagnola
e5a17edb4d Add spinbox 'regex' and 'evalFunc' options to complete user-formatting functionality 2016-12-08 10:12:45 -08:00
Luke Campagnola
6b798ffed8 Fix multiple spinbox problems:
- fixed bug with exponents disappearing after edit
 - fixed parsing of values with junk after suffix
 - fixed red border
 - reverted default decimals to 6
 - make suffix editable (but show red border if it's wrong)
 - revert invalid text on focus lost
 - siPrefix without suffix is no longer allowed
 - let user set arbitrary format string
2016-12-06 22:29:22 -08:00
Luke Campagnola
c97c5f51e2 Add spinbox option for custom formatting 2016-11-30 09:16:56 -08:00
Luke Campagnola
e35f59fcb7 Fix interpolateArray for order=0 2016-10-12 10:26:54 -07:00
Luke Campagnola
92fc9dbe2f Add unit test for interpolateArray with order=0
docstring update
2016-10-12 09:58:03 -07:00
Max Peng
8bdc19be75 update to support pyside2 2016-09-25 00:16:36 +08:00
Luke Campagnola
7f0556b05f Implement order=0 in functions.interpolateArray; use scipy only for
order>1.
2016-09-13 18:08:11 -07:00