Commit Graph

560 Commits

Author SHA1 Message Date
Ogi
3158c5b4db Use int() instead of .__int__() 2020-02-29 14:38:19 -08:00
Ognyan Moore
6ed8a405fe Address FutureWarning about implicit float to int conversions 2020-02-28 14:27:10 -08:00
Ognyan Moore
f0d1c4eda1 Skipping problematic test on py2/qt4/linux 2020-02-24 22:30:27 -08:00
Kenneth Lyons
61104cd43c Fix small oversight in LegendItem 2019-12-24 10:04:31 -08:00
Paul Müller
2a01c3848a
fix wrong offset when drawing symbol 2019-11-25 14:14:15 +01:00
Paul Müller
b02ada024b
fix error on SVG export of scatter plots: KeyError: 'resolutionScale' 2019-11-23 13:10:49 +01:00
SamSchott
c0ae44bc2d Nicer legend (#958)
* More customizable and nicer legend.

- Give kwargs for legend frame and background colors instead of hard-coded values.
- Reduce spacing for more compact legend
- Give separate kwarg `labelTextColor`.
- New method to clear all legend items.
- New methods to get and change `offset` relative to the legend's parent.
- Horizontal instead of tilted lines for legend pictures.
2019-11-19 21:42:31 -08:00
SamSchott
c95ab570b1 set color of tick-labels separately (#841) 2019-11-19 20:43:27 -08:00
boylea
b1b2f4662b Fixed image scatter plot export bug (#88) 2019-11-19 20:03:15 -08:00
Paul Müller
267a0af8e7 Reset currentRow and currentCol on clear (#1076) 2019-11-19 08:21:36 -08:00
Daniel Hrisca
15a1f5af94 improve performance of updateData PlotCurveItem (saves about 2us per call) (#1079)
* improve performance of updateData PlotCurveItem (saves about 2us per call)
2019-11-19 08:14:53 -08:00
Kenneth Lyons
faef56c3e7 Qulogic py3 fixes (#1073)
* py3k: Remove reduce calls.

* py3k: Remove compatibility sortList function.

Sorting by key has existed since Python 2.4.

* Remove unnecessary sys.path manipulation.

This file doesn't have any __main__ code to run anyway.

* Use context manager
2019-11-12 08:45:42 -08:00
Kenneth Lyons
f5e25622a7 Validate min/max text inputs in ViewBoxMenu (#1074) 2019-11-12 08:36:16 -08:00
Agamemnon Krasoulis
f2740f7e69 Fix typo in documentation (#1062) 2019-10-22 09:45:45 -07:00
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
Kenneth Lyons
b7f1aa88cd Cast to int after division 2019-09-22 17:03:30 -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
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
Jindřich Makovička
bbc11b96a9 Configurable GridItem tick spacing and pen color (#101) 2019-09-12 14:50:43 -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
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
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
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
abd028436a Always convert PlotDataItem data to NumPy array 2019-08-08 16:58:28 +02:00
Axel Jacobsen
18661cab0d BarGraphItem CSV export and documentation 2019-08-06 09:32:43 -07: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
Luke Campagnola
138fdd0af2 relax image comparison for failing windows test (#979)
relax image comparison for failing windows test
2019-07-02 06:57:45 -04:00
Luke Campagnola
cff9cfa98d Reduce test window size for OSX compatibility 2019-07-01 19:00:18 -07:00
Ogi Moore
04114fa126
Merge pull request #968 from ecejeff/unit-label-fix
Fix for AxisItem using old scale to create label
2019-07-01 07:01:05 -07:00
Ogi Moore
18bfee3462
Merge pull request #333 from ombschervister/legend_fix
fix legendItem drag
2019-06-27 14:44:55 -07:00
Jeffrey Nichols
d9f0da5a7c
Fix for AxisItem using old scale to create label 2019-06-27 14:45:37 -04:00
Ogi Moore
82d690e08d
Merge pull request #321 from espdev/fix-issue316
Fixing the border rect overlapping for ViewBox and GraphicsLayout
2019-06-26 22:33:21 -07:00
Sam Schott
d870a34359 add a test for clipping 2019-06-24 14:49:32 +01:00
Eugene Prilepin
1955ae024c Fix: object has no attribute 'border' 2019-06-24 16:36:23 +03:00
Eugene Prilepin
001390c160 Bugfix: GraphicsLayout border drawing
- Fixed border overlapping (issue #316)
2019-06-24 16:21:00 +03:00
Eugene Prilepin
b491f82006 Bugfix: ViewBox border drawing
- Fixed border overlapping (issue #316)
- Added new method ViewBox.setBorder to complete API
2019-06-24 16:21:00 +03:00
Sam Schott
262004e2ec Merge remote-tracking branch 'upstream/develop' into patch-3 2019-06-24 13:54:08 +01:00
Sam Schott
f23889d594 only use np.searchsorted quicker method fails 2019-06-24 13:53:00 +01:00
Ogi Moore
053fca6e83
Revert "_updateMaxTextSize to reduce text size when no longer needed (#838)" (#957)
This reverts commit 0ba07300e1.
2019-06-23 21:41:20 -07:00
SamSchott
0ba07300e1 _updateMaxTextSize to reduce text size when no longer needed (#838)
Currently `_updateMaxTextSize ` will increase the current space required for axis labels, if necessary, but not decrease it when the extra space is no longer needed. The proposed change will release no longer needed space again.
2019-06-23 18:10:35 -07:00
Daniel Hrisca
297e1d95a5 avoid double call to mkPen when creating PlotCurveItem objects (#817)
* avoid double call to mkPen when creating PlotCurveItem objects

* avoid unnecessary calls to mkPen in paint
2019-06-23 17:30:40 -07:00
SamSchott
3e7cace746 tickSpacing bug fix (#836)
Fixed a bug where `tickSpacing()` would return `None` if `style['maxTickLevel'] < 2`, resulting in the axis not being drawn.
2019-06-23 17:27:16 -07:00
SamSchott
1b6537b241 Curve fill: draw line around patch (#922) 2019-06-23 17:07:55 -07:00