Commit Graph

52 Commits

Author SHA1 Message Date
Kyle Sunden
6a59b7e5b5
Many unused import cleanups (#1935)
* Many unused import cleanups

Ignored some star imports, some vendored code in colorama, only looked within pyqtgraph the library, not e.g. examples

* SpinBox decimal imported with both import and from import
2021-07-31 07:35:23 -07:00
Martin Chase
1d40d50b89
push bullet lists over 2 spaces to get them to show up as such in the… (#1912)
* push bullet lists over 2 spaces to get them to show up as such in the docs

* separate the literal block from the bullet list
2021-07-21 07:12:35 -07:00
Ogi Moore
d455da9aec Use Qt6 Enum Namespace
This namespace appears to be valid in PySide2/PyQt5 5.12+ so we may as
well migrate to the newer namespace ourselves.
2021-06-08 21:23:49 -07:00
shahmustafa54
e1b1410260 Fixed typo in InfiniteLine (sigclicked vs. sigClicked) 2021-05-04 06:03:17 +05:00
Ogi Moore
b0769f4be9 Use math.radians and math.degrees
Many places in the library were doing radian to degree conversion
via the manual calculation.  Doing timeit benchmarks on my system, I
am able to get a 4x speedup by using math.degrees or math.radians
instead
2021-04-23 22:43:51 -07:00
Ogi Moore
c4a1cf11a1 Use clip_array or clip_scalar instead of np.clip
Significant performance issues have been identified with np.clip
and thus clip_array was created to speed up the operation.  In addition
clip_scalar was created to clip a scalar value between two other values
this commit replaces many uses of np.clip from operating on scalars to
using clip_scalar instead
2021-04-23 11:53:00 -07:00
Ogi Moore
b0a3849960 Use math module methods for singular values
Using numpy methods that are intended for vectorized operations is
substantially slower than using the math module, so when feasible the
math module methods should be used.
2021-04-23 11:53:00 -07:00
Kyle Sunden
17b1b82ae9 Handle case of 0-d array in infinite line setPos 2021-02-10 13:59:37 -06:00
KIU Shueng Chuan
185f9c7dad remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
Ogi Moore
961cdac51c
Infiniteline emits clicked signal event (#1522) 2021-01-28 22:02:51 -08:00
Lee Tirrell
64e04e3120
Fix #798 (#1487) 2021-01-03 14:28:40 -08:00
Julius Juodakis
0e816f1dbe
InfiniteLine caching calls merged (fixes #1450) (#1452) 2020-11-20 21:27:55 -08:00
Ogi Moore
27ca1747f1
Call GraphicsItem.viewTransformChanged() (#1413)
* Call GraphicsItem.viewTransformChanged()

* Needed to apply to labels too
2020-10-22 11:17:33 -07:00
Luke Campagnola
993871b1ae InfinifteLine.setPos add support for array arg 2020-07-13 12:51:03 -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
2xB
ed6586c7dd Removed unnecessary enlargement of bounding box (#1048) 2019-09-30 09:15:03 -07:00
Luke Campagnola
653c91a683 InfiniteLine: add markers and ability to limit drawing region 2017-09-15 09:14:26 -07:00
lidstrom83
bb44a3387a Made InfLineLabel.setFormat actually set the format string. 2016-05-03 10:38:44 -06:00
Legnain
b4b1aec162 Added "self.moving = False" in InfLineLabel class
Added  "self.moving = False" in  InfLineLabel class to solve the error message when clicking on the label.

    |  AttributeError: 'InfLineLabel' object has no attribute 'moving'
2016-05-03 04:54:21 -04:00
Luke Campagnola
36b3f11524 docstring update 2016-02-28 20:53:52 -08:00
Luke Campagnola
bb97f2e98d Switch text anchor when line crosses center of view 2016-02-28 20:52:07 -08:00
Luke Campagnola
b7bf6337d7 minor efficiency boost 2016-02-28 18:45:42 -08:00
Luke Campagnola
bd0e490821 cleanup: docs, default args 2016-02-28 12:26:05 -08:00
Luke Campagnola
4e424b5773 Fixed label dragging for oblique lines 2016-02-22 22:12:36 -08:00
Luke Campagnola
7a0dfd768a Cleanup: add docstrings and setter methods to InfLineLabel, remove unused code 2016-02-22 00:23:36 -08:00
Luke Campagnola
a72fec51b1 Merge branch 'infline-labels' into infiniteline-tests
Conflicts:
	pyqtgraph/graphicsItems/InfiniteLine.py
2016-02-22 00:06:04 -08:00
Luke Campagnola
170592c294 update example 2016-02-21 23:28:24 -08:00
Luke Campagnola
f3a584b8b7 label correctly follows oblique lines 2016-02-21 23:18:01 -08:00
Luke Campagnola
069a5bfeea Labels can rotate with line 2016-02-21 00:17:17 -08:00
Luke Campagnola
5172b782b5 Added inflinelabel class, label dragging and position update works.
Update to TextItem to allow mouse interaction
2016-02-19 00:41:42 -08:00
lesauxvi
010cda004b correction of a bug regarding the exact placement of the label 2016-02-17 07:03:13 +01:00
lesauxvi
5888603ebf addition of a draggable option for infiniteline 2016-02-16 08:14:53 +01:00
lesauxvi
ba4b648263 addition of a convenient method for handling the label position 2016-02-16 06:48:59 +01:00
lesauxvi
de24d6db6a correction of the text location bug 2016-02-16 06:36:41 +01:00
lesauxvi
6fc4e1a611 renaming of a method for better consistency 2016-02-15 07:11:22 +01:00
lesauxvi
e7b27c2726 text location algorithm simplification 2016-02-05 13:57:51 +01:00
lesauxvi
0be3615c88 docstring correction 2016-02-05 11:54:00 +01:00
lesauxvi
aec6ce8abb infinite line performance improvement 2016-02-04 03:28:59 +01:00
lesauxvi
51b8be2bd1 Infinite line extension 2016-02-03 12:52:01 +01:00
Alessandro Bacchini
98ff70e8a0 Improve drawing performance by caching the line and bounding rect. 2016-02-02 15:31:48 +01:00
lesauxvi
07f610950d creation of a combined method for handling the label location 2016-02-01 11:17:36 +01:00
lesauxvi
ce36ea4eb6 Infiniteline enhancement 2016-01-15 16:10:24 +01:00
Luke Campagnola
1fe5976e19 Merge branch 'pyqt5' into develop
Conflicts:
	examples/parametertree.py
	pyqtgraph/Qt.py
	pyqtgraph/graphicsItems/FillBetweenItem.py
	pyqtgraph/graphicsItems/InfiniteLine.py
	pyqtgraph/imageview/ImageView.py
2015-02-28 11:46:41 -05:00
Luke Campagnola
52d7f2142c Fix line width in a few examples 2015-02-28 11:26:45 -05:00
Luke Campagnola
6a4a653989 Added InfiniteLine.setHoverPen 2014-05-10 14:19:27 -04:00
Luke Campagnola
2e3cfcbd6d Make setPen() methods more consistent throughout the package.
Merge remote-tracking branch 'termim/develop' into develop

Conflicts:
	pyqtgraph/graphicsItems/ROI.py
2014-03-01 09:37:59 -05:00
Mikhail Terekhov
953b9e4129 Make signature of the setPen method consistent 2014-02-28 16:16:13 -05:00
tommy3001
78d92b383f Aditional ":" added, minor list alignments 2014-02-12 21:25:31 +01:00
tommy3001
2a13994a2a Bugfix: Malformed tables.
All argument lists with `**Arguments:**`
2014-02-05 21:04:33 +01:00
tommy3001
92d7bbe18e In list tables "**Arguments**", "Arguments:" changed to **Arguments:** 2014-02-03 21:13:10 +01:00