pyqtgraph/pyqtgraph
Drew e7ceebd867
LegendItem: fix docs & minor bugs (#1437)
* LegendItem: fix spelling mistake

* LegendItem: remove unused curRow variable

* LegendItem: correct calculation of rowCount

Previously, rowCount would never be updated unless setColumnCount()
was called. This fixes that issue.
It also fixes that setColumnCount() rounded down (floored) the
number of rows, instead of providing an accurate number:
e.g. 4 items in 3 columns would yield rowCount=1, when it should be 2

* LegendItem: remove rowCount argument (not implemented)

Logic to actually use the rowCount argument was not implemented.
Users might expect rowCount to limit the number of rows to e.g. 1,
but that is not what the current code does (it only works with limiting
the number of columns).
Thus, we were exposing an unused/misleading parameter to users.

This can and should be reverted if the logic for limiting the number
of rows is added.

* LegendItem: add colCount docs

* test (LegendItem): remove unused curRow variable

* test (LegendItem): check increasing rowCount as add items

* Fixed logic in placement of items in legend with multiple columns

* Actual row count here should be 2, not 3

Co-authored-by: Ogi Moore <ognyan.moore@gmail.com>
2021-02-05 23:00:34 -08:00
..
canvas Attempt i18n localization (#1513) 2021-01-27 11:34:32 -08:00
colors/maps Colormap extension (#1424) 2021-01-04 22:01:30 -08:00
console delete some more Qt4 generated templates 2021-01-31 22:11:49 +08:00
dockarea Container.py : fix RecursionError 2021-01-23 08:29:52 +08:00
exporters remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
flowchart remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
graphicsItems LegendItem: fix docs & minor bugs (#1437) 2021-02-05 23:00:34 -08:00
GraphicsScene Bugfix/wrong translate implementation (#1520) 2021-01-28 08:42:18 -08:00
icons GraphIcons: Extend and deprecate previous pixmaps (#1534) 2021-02-05 21:09:59 -08:00
imageview Guard against key events when there's no time axis in ImageView 2021-02-05 20:23:15 -08:00
metaarray update h5py deps in metaarray 2020-07-06 01:08:01 -07:00
multiprocess Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
opengl Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
parametertree GraphIcons: Extend and deprecate previous pixmaps (#1534) 2021-02-05 21:09:59 -08:00
tests get test_ref_cycles to pass (#1539) 2021-02-04 20:18:53 -08:00
util Performance enhancement: use CUDA in ImageItem (#1466) 2021-01-19 21:26:24 -08:00
widgets get test_ref_cycles to pass (#1539) 2021-02-04 20:18:53 -08:00
__init__.py Performance enhancement: use CUDA in ImageItem (#1466) 2021-01-19 21:26:24 -08:00
colormap.py Merge branch 'master' into ptree 2021-01-31 13:36:53 -08:00
configfile.py py3 fixes 2020-07-05 22:52:15 -07:00
debug.py sip: switch to new PyQt5 api import, with fallback to the old implementation if not found. 2020-07-27 14:52:07 +02:00
exceptionHandling.py Squashed commit of the following: 2014-08-07 09:03:26 -04:00
frozenSupport.py Added Travis CI support 2014-03-30 02:51:32 -04:00
functions.py Add a few minor notes to docs on suffix/siPrefix 2021-02-03 17:27:41 -08:00
graphicsWindows.py Restore the now-deprecated PlotWindow and ImageWindow classes 2020-06-11 20:55:28 -07:00
ordereddict.py Don't use ORderedDict backport on python 3 2017-10-11 09:05:32 -07:00
pgcollections.py Merge master into develop (#981) 2019-08-16 20:16:01 -07:00
PlotData.py import numpy as np for lines 44 and 51 (#1161) 2020-05-30 08:09:25 -07:00
Point.py Fix some warnings 2020-07-13 21:09:31 -07:00
ptime.py ptime fix - return precision clock time on py3 2020-07-17 09:53:19 +03:00
python2_3.py Qulogic py3 fixes (#1073) 2019-11-12 08:45:42 -08:00
Qt.py remove qtest shim for Qt5 too 2021-02-05 07:30:33 +08:00
reload.py reload fix - don't reload files with no pyc 2020-07-17 09:54:51 +03:00
SignalProxy.py SignalProxy: Correct initialization without slot argument and tests (#1392) 2020-10-13 08:50:22 -07:00
SRTTransform3D.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
SRTTransform.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
ThreadsafeTimer.py Fix some warnings 2020-07-13 21:09:31 -07:00
Transform3D.py Fix transform3D for pyside2 2018-05-23 21:30:02 -07:00
units.py add unicode units (#1471) 2021-01-03 14:28:56 -08:00
Vector.py improve docstring formatting and wording 2020-08-15 22:15:58 -07:00
WidgetGroup.py WidgetGroup.py : PyQt6 was taking PyQt4 codepath 2021-01-23 08:29:51 +08:00