KIU Shueng Chuan
fbd1e89950
regenerate templates
2021-02-22 19:17:53 +08:00
KIU Shueng Chuan
a657dea084
remove graphics system combobox
2021-02-22 19:17:53 +08:00
KIU Shueng Chuan
61616ffad9
remove calls to setGraphicsSystem
...
in fact all are no-ops
2021-02-22 19:17:53 +08:00
KIU Shueng Chuan
e09a397ebc
modify environment to choose binding
...
the Example App allows the user to choose a binding and a graphics
system to use to execute an example.
issue 1: setGraphicsSystem is obsolete and the method no longer exists.
thus selecting a graphics system causes an error.
issue 2: the choice of binding to use is passed as an extra command
line argument to be parsed by initExample. this is problematic for
examples that use argparse, such as VideoSpeedTest.py
issue 3: if the user has set PYQTGRAPH_QT_LIB, that takes precedence
over the choice made in the Example App.
this patch fixes the above 3 issues by setting PYQTGRAPH_QT_LIB in
the child process' environment and removing the old parsing of the
command line arguments
2021-02-22 18:13:49 +08:00
Ogi Moore
5b1ac7acaa
Merge pull request #1597 from pijyoi/fix_dim2
...
RawImageWidget: transpose did not handle luminance only images
2021-02-20 09:24:18 -08:00
KIU Shueng Chuan
0dc17ef546
RawImageGLWidget follow same style as RawImageWidget
...
i.e. row-major convention is used internally and user inputs are
converted at the point of entry.
2021-02-20 18:58:26 +08:00
KIU Shueng Chuan
5a29373572
fix: make transpose work for either ndim 2 or 3
...
at the same time, increase performance by using
makeQImage(copy=False, transpose=False)
2021-02-20 18:42:13 +08:00
Ogi Moore
3eda637652
Merge pull request #1595 from outofculture/cupy-bug-workaround
...
Workaround for cupy indexing bug
2021-02-19 21:58:14 -08:00
Martin
09fd7a81b9
account for cupy inconsistency in slicing with a boolean array
...
See https://github.com/cupy/cupy/issues/4693
2021-02-19 20:51:35 -08:00
Ogi Moore
6fc0389f33
Merge pull request #1594 from outofculture/plotitem-regression
...
Fix Plotitem regression
2021-02-19 12:21:16 -08:00
Martin
b7e560a7ea
fix imports
...
* metaarray is not used
* PlotCurveItem and ScatterPlotItem needed to be imported
* sort
2021-02-19 11:33:06 -08:00
Martin
b9086f1023
no "i" variable anymore
2021-02-19 11:11:38 -08:00
Ogi Moore
d9eb8e1afb
Merge pull request #1575 from pijyoi/reduce_shim
...
Reduce number of shims for PyQt6
2021-02-19 09:40:06 -08:00
Ogi Moore
d0d10ca512
Merge pull request #1587 from irgolic/darkmode-example-property
...
app.dark_mode => app.property('darkMode')
2021-02-18 19:33:16 -08:00
Rafael Irgolic
6da60ccec8
Qt: Remove some Qt4 shims
2021-02-18 19:12:32 +00:00
Rafael Irgolic
ae54e27ff6
app.dark_mode => app.property('darkMode')
2021-02-18 19:02:18 +00:00
Ogi Moore
1a2728a671
Merge pull request #1586 from j9ac9k/investigate-rawImage-imageaxisorder
...
Investigate raw image imageaxisorder
2021-02-16 22:48:22 -08:00
Ogi Moore
765032fc0b
Do not upload texture every paintGL call
2021-02-16 22:19:38 -08:00
Ogi Moore
0b26ef3644
RawImageWidget uses imageAxisOrder config option
2021-02-16 22:19:13 -08:00
Ogi Moore
acd172eb13
Merge pull request #1583 from pijyoi/port_qopenglwidget
...
RawImageWidget.py : fix port to QOpenGLWidget
2021-02-15 21:02:34 -08:00
Ogi Moore
c13da2c6da
Merge pull request #1582 from pyqtgraph/rtd
2021-02-15 18:40:40 -08:00
KIU Shueng Chuan
2719922584
RawImageWidget.py : fix port to QOpenGLWidget
...
Qt5 docs specify differences between QGLWidget and QOpenGLWidget:
"...when invoking paintGL().
QOpenGLWidget sets up the viewport via glViewport().
It does not perform any clearing."
2021-02-16 09:15:37 +08:00
Kenneth Lyons
87f6c2778b
Pin sphinx version to avoid buggy sphinx.ext.viewcode
2021-02-15 16:24:49 -08:00
lidstrom83
6519734932
Deprecate unused/unnecessary modules ( #1576 )
...
* Deprecate ordereddict module
* Import OrderedDict from collections module instead of pgcollections
* Deprecate pgcollections module
* Deprecate lru_cache module
A simpler recipe exists from the standard library using OrderedDict.
* Deprecate pil_fix module
* Python 3.7 compatibility fix
* Avoid or suppress deprecation warnings in tests
2021-02-15 09:52:06 -08:00
Martin Chase
5210c55e67
Equilateral Triangle ROI ( #1581 )
...
* feature TriangleROI
Added equilateral TriangleROI.
getArrayRegion is not working yet
* show off (and implicitly test) our new TriangleROI
* the PolyLineROI.getArrayRegion can be used by TriangleROI
refactor the actual logic to live on ROI
* refactors for readability
* variable names
* lint
* docstring type and purpose
Co-authored-by: Fekete Imre <feketeimre87@gmail.com>
2021-02-15 06:06:55 -08:00
Kyle Sunden
a5a41cf8eb
Merge pull request #1577 from j9ac9k/cleanup-1573
...
Remove duplicate import and remove whitespace
2021-02-14 21:36:31 -06:00
Ogi Moore
825286066a
only cast to float32 when safe to do so
2021-02-14 17:43:32 -08:00
Ogi Moore
4ac8e39aea
Remove duplicate import and remove whitespace
2021-02-14 12:05:22 -08:00
Ogi Moore
5bfe8d5a46
Merge pull request #1572 from outofculture/arbitrary-scale-center
...
Arbitrary scale center ROI
2021-02-14 08:49:03 -08:00
KIU Shueng Chuan
a1f9100ef1
shim only the keys we actually use
2021-02-14 07:56:05 +08:00
KIU Shueng Chuan
6ad1d752fe
use QKeySequence to detect platform dependent copy keys
2021-02-14 07:46:20 +08:00
KIU Shueng Chuan
968286a1cf
remove drag and drop shims
...
used only in one place in the codebase
2021-02-14 07:44:00 +08:00
KIU Shueng Chuan
f4d685f7bd
remove QDialog.exec_ shim
...
only used by PrinterExport.py which is currently disabled
2021-02-14 07:36:41 +08:00
Ogi Moore
a04ff546e0
Merge pull request #1573 from j9ac9k/add-deprecation-warnings
...
Add deprecation warnings, Use non-deprecated upstream methods
2021-02-13 14:59:17 -08:00
Ogi Moore
6c5c0b590f
Skip test_reload on python 3.10+
2021-02-13 10:57:38 -08:00
Ogi Moore
dce2288a18
Fix most errors...
2021-02-13 10:57:38 -08:00
Ogi Moore
3bfe2d81ba
Do not use numpy deprecated type aliases
2021-02-13 10:57:38 -08:00
Ogi Moore
955f1c37a6
Use QPointF instead of QPoint for float input
2021-02-13 10:57:38 -08:00
Ogi Moore
f853d8b520
Replace float type to QTimer.start() with int
2021-02-13 09:07:54 -08:00
Ogi Moore
fc550aab86
keep testing deprecated objects, catch warnings
2021-02-12 13:08:00 -08:00
Ogi Moore
36d89fa3a5
Have test_PlotCurveItem use GraphicsLayoutWidget and not the deprecated GraphicsWindow
2021-02-12 13:08:00 -08:00
Ogi Moore
d14a90112c
Have test_svg use GraphicsLayoutWidget not the Deprecated GraphicsWindow
2021-02-12 13:08:00 -08:00
Ogi Moore
4fcea2762f
Have NonUniformImage test use GraphicsLayoutWidget not deprecated GraphicsWindow
2021-02-12 13:08:00 -08:00
Ogi Moore
45329aac51
Remove unneeded pytest.skipif decorator
2021-02-12 13:08:00 -08:00
Ogi Moore
b45386ebc5
Have __init__.plot() use PlotWidget, not deprecated PlotWindow
2021-02-12 13:08:00 -08:00
Ogi Moore
ff71b6be6b
Add actual deprecation warnings
2021-02-11 21:34:02 -08:00
Ogi Moore
bd548e00c9
Restore shimmed Qt4 methods, with deprecation warnings
2021-02-11 20:06:38 -08:00
lidstrom83
d7668f91b3
Fix ScatterPlotItem performance regression ( #1569 )
...
* Fix ScatterPlotItem performance regression
* Add hover benchmark to ScatterPlotSpeedTest.py
* Removed a performance regression from GraphicsView
* Removed some tests failing due to the last commit
2021-02-11 08:36:52 -08:00
Ogi Moore
344348441a
Merge pull request #1568 from pijyoi/pyqt_qimage
...
Change image tests to not rely on non-const QImage
2021-02-10 19:57:22 -08:00
KIU Shueng Chuan
659392d4bb
don't rely on QImage being non-const
...
the previous formulation creates an ndarray and then creates an QImage
over it w/o copying. this relies on the QImage thus created being
non-const.
if the QImage was (unintentionally) created as const, the subsequent
QPainter render on the const QImage would trigger a COW. i.e. the
original underlying ndarray wouldn't be updated.
this is only an issue for PyQt bindings where const QImages can be
created.
2021-02-11 10:38:19 +08:00