Commit Graph

21 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
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
Ogi Moore f8cefa6284 Use hypot method to avoid over/underflow errors
Use hypot instead of manual calculation
2021-04-23 11:53:00 -07:00
KIU Shueng Chuan 607db15949 call super() on virtual QWidget methods 2021-01-23 08:29:44 +08:00
Ales Erjavec 3d391d46e3 Add `parent` to ArrowItem's constructor signature 2020-08-17 09:27:23 +02:00
Ales Erjavec a9049f1d4d Pop the 'parent' arg from ArrowItem opts parameter dict
If not, then an `KeyError: 'Invalid arrow style option "parent"'`
 is raised in setStyle.
2020-07-28 10:01:15 +02:00
Luke Campagnola 6a5e7cfee5 ArrowItem performance
- Avoid updates that would have no effect
- Raise exception on invalid arguments to setStyle
2020-07-06 01:27:43 -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
Luke Campagnola ea9e8a720b ArrowItem: rotate painterpath instead of the item
This makes it easier to attach text to the arrow.
2017-09-15 09:09:45 -07:00
tommy3001 ce0fb140e8 ":" added again (copy/paste issue) 2014-02-12 21:03:39 +01:00
tommy3001 ddaa07afb1 "Arguments" added again (copy/paste issue) 2014-02-12 20:49:53 +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
Luke Campagnola 92d3b3fb94 cleanups 2014-02-02 10:45:32 -05:00
Luke Campagnola 96296749be Merge remote-tracking branch 'termim/master' into termim-fixes
ArrowItem: setStyle now combines new options with previously-set options.
AxisItem: fix minor exceptions
2014-02-02 10:43:29 -05:00
Mikhail Terekhov 95bddca014 In ArrowItem allow individual parameter change through setStyle call. 2014-01-31 23:00:18 -05:00
Luke Campagnola f630734453 Switching to relative imports to allow pyqtgraph to be imported under other names.
finished top-level files and graphicsItems
2013-12-22 02:08:39 -05:00
Luke Campagnola 9c70d948aa Fixed ArrowItem auto-range 2013-02-14 14:22:30 -05:00
Luke Campagnola 510b1b3fad Added some documentation for ArrowItem 2013-02-10 14:12:56 -05:00
Luke Campagnola 72f66f7531 merge pyqtgraph from dev 2012-12-26 18:54:12 -05:00
Luke Campagnola af59296231 Reorganized directory structure to be more standard
Started new SVG exporter
Merged updates from ACQ4
2012-12-25 00:43:31 -05:00