pyqtgraph/examples
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
..
cx_freeze Added cx_freeze example (thanks Jerry!) 2014-06-06 15:53:17 -06:00
optics remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
py2exe Fix: avoid importing py3 module from pyqt when using py2 2014-04-03 13:33:16 -04:00
relativity remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
verlet_chain Fix verlet integration demo 2017-10-18 00:18:46 -07:00
__init__.py example app now works with Qt4 and Python2 again (#1302) 2020-10-19 11:51:12 -07:00
__main__.py Fix ExampleApp: Use pg module from directory when run without installation (#1432) 2020-11-09 14:57:01 -08:00
Arrow.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
BarGraphItem.py Added BarGraphItem.shape() to allow better mouse interaction 2014-02-09 10:38:29 -05:00
beeswarm.py merged many changes from acq4 2013-03-26 13:46:26 -04:00
CLIexample.py python3 fixes 2013-02-24 23:09:03 -05:00
ColorButton.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
colorMaps.py Colormap extension (#1424) 2021-01-04 22:01:30 -08:00
ConsoleWidget.py python3 fixes 2013-02-24 23:09:03 -05:00
contextMenu.py remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
crosshair.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
customGraphicsItem.py python3 fixes 2013-02-24 23:09:03 -05:00
CustomGraphItem.py Replace deprecate class in examples 2018-02-16 12:21:39 +08:00
customPlot.py Fix TickSliderItem: Avoid ghost ticks | Improved customPlot.py code (#1459) 2020-11-26 22:28:03 -08:00
DataSlicing.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
DataTreeWidget.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
DateAxisItem_QtDesigner.py Add almost all examples to ExampleApp (#1511) 2021-01-26 13:45:53 -08:00
DateAxisItem_QtDesigner.ui Date axis item (#1154) 2020-04-27 11:43:22 -07:00
DateAxisItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
designerExample.py Added Qt.loadUiType function for PySide 2013-12-17 21:23:37 -05:00
designerExample.ui Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
DiffTreeWidget.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
dockarea.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
Draw.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
ErrorBarItem.py Add ErrorBarItem.setData 2014-06-27 10:55:55 -04:00
ExampleApp.py Add almost all examples to ExampleApp (#1511) 2021-01-26 13:45:53 -08:00
exampleLoaderTemplate_pyqt5.py exampleLoaderTemplate.ui : add Qt6 and remove Qt4 2021-01-23 11:43:34 +08:00
exampleLoaderTemplate_pyqt6.py exampleLoaderTemplate.ui : add Qt6 and remove Qt4 2021-01-23 11:43:34 +08:00
exampleLoaderTemplate_pyside2.py exampleLoaderTemplate.ui : add Qt6 and remove Qt4 2021-01-23 11:43:34 +08:00
exampleLoaderTemplate_pyside6.py exampleLoaderTemplate.ui : add Qt6 and remove Qt4 2021-01-23 11:43:34 +08:00
exampleLoaderTemplate.ui exampleLoaderTemplate.ui : add Qt6 and remove Qt4 2021-01-23 11:43:34 +08:00
FillBetweenItem.py Fix some bugs in PyQt5 2015-01-17 00:21:33 +08:00
Flowchart.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
FlowchartCustomNode.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
fractal.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLBarGraphItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLImageItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLIsosurface.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLLinePlotItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLMeshItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLScatterPlotItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLshaders.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLSurfacePlot.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLViewWidget.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GLVolumeItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GradientEditor.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GradientWidget.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GraphicsLayout.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GraphicsScene.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
GraphItem.py Replace deprecate class in examples 2018-02-16 12:21:39 +08:00
hdf5.py Import from python2_3 for all uses of basestring, cmp, and xrange 2015-05-19 09:29:55 -04:00
histogram.py Add "left" and "right" step Modes (#1360) 2020-10-13 08:52:07 -07:00
HistogramLUT.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
imageAnalysis.py remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
ImageItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
ImageView.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
infiniteline_performance.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
InfiniteLine.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
initExample.py initExample.py: add PySide6 and PyQt6 2021-01-15 08:25:07 +08:00
isocurve.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
JoystickButton.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
Legend.py LegendItem: fix docs & minor bugs (#1437) 2021-02-05 23:00:34 -08:00
linkedViews.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
logAxis.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
LogPlotTest.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
MouseSelection.py Corrected mouse clicking on PlotCurveItem - now uses stroke outline instead of path shape 2013-12-19 09:56:58 -05:00
MultiplePlotAxes.py AxisItem bugfix: corrected x-linked view update behavior 2013-03-19 11:49:10 -04:00
multiplePlotSpeedTest.py Import from python2_3 for all uses of basestring, cmp, and xrange 2015-05-19 09:29:55 -04:00
MultiPlotSpeedTest.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
MultiPlotWidget.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
multiprocess.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
NonUniformImage.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
optics_demos.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
PanningPlot.py Replace deprecate class in examples 2018-02-16 12:21:39 +08:00
parallelize.py Import from python2_3 for all uses of basestring, cmp, and xrange 2015-05-19 09:29:55 -04:00
parametertree.py Support suffix for int parameters (#1528) 2021-02-03 12:30:05 -08:00
PColorMeshItem.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
PlotAutoRange.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
PlotSpeedTest.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
Plotting.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
PlotWidget.py Add warning about PySide 5.14, avoid a confusing error message that would appear with 5.14 2020-05-29 23:42:35 -07:00
ProgressDialog.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
relativity_demo.py Added new demos: 2014-05-22 01:22:12 -04:00
RemoteGraphicsView.py Bugfixes: 2013-11-06 23:14:27 -05:00
RemoteSpeedTest.py fix RemoteSpeedTest shutdown errors 2021-01-28 07:19:54 +08:00
ROIExamples.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
ROItypes.py remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
ScaleBar.py remove scale, rotate and translate shims 2021-02-01 09:06:23 +08:00
ScatterPlot.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
ScatterPlotSpeedTest.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
ScatterPlotSpeedTestTemplate_pyqt5.py flip template line endings 2018-05-24 08:54:31 -07:00
ScatterPlotSpeedTestTemplate_pyqt6.py generate _pyqt6.py files 2021-01-23 08:29:39 +08:00
ScatterPlotSpeedTestTemplate_pyside2.py flip pyside2 template line endings 2018-05-17 09:02:41 -07:00
ScatterPlotSpeedTestTemplate_pyside6.py generate template files for pyside6 2021-01-15 08:25:07 +08:00
ScatterPlotSpeedTestTemplate.ui Patch/window handling (#468) 2020-06-01 11:23:18 -07:00
ScatterPlotWidget.py Fix py3 string handling in scatterplotwidget example 2018-05-09 10:56:01 -07:00
scrollingPlots.py Replace deprecate class in examples 2018-02-16 12:21:39 +08:00
SimplePlot.py Merge branch 'viewbox_limits' into develop 2014-02-04 20:32:44 -05:00
SpinBox.py Support siPrefix with no suffix in SpinBox 2021-02-03 17:14:06 -08:00
Symbols.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
syntax.py Use raw strings to get rid of DeprecationWarning 2020-09-20 13:59:44 -07:00
TableWidget.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
template.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
test_ExampleApp.py example app now works with Qt4 and Python2 again (#1302) 2020-10-19 11:51:12 -07:00
test_examples.py fix RemoteSpeedTest shutdown errors 2021-01-28 07:19:54 +08:00
text.py Fixed TextItem briefly drawing with incorrect transform. 2016-09-14 18:18:33 -07:00
TreeWidget.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
utils.py Add almost all examples to ExampleApp (#1511) 2021-01-26 13:45:53 -08:00
verlet_chain_demo.py corrections to manifest 2014-12-23 15:55:52 -05:00
VideoSpeedTest.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
VideoTemplate_pyqt5.py Performance enhancement: use CUDA in ImageItem (#1466) 2021-01-19 21:26:24 -08:00
VideoTemplate_pyqt6.py generate _pyqt6.py files 2021-01-23 08:29:39 +08:00
VideoTemplate_pyside2.py Performance enhancement: use CUDA in ImageItem (#1466) 2021-01-19 21:26:24 -08:00
VideoTemplate_pyside6.py generate _pyqt6.py files 2021-01-23 08:29:39 +08:00
VideoTemplate.ui Performance enhancement: use CUDA in ImageItem (#1466) 2021-01-19 21:26:24 -08:00
ViewBox.py Fix windows hidpi (#1516) 2021-01-27 10:59:07 -08:00
ViewBoxFeatures.py Replace deprecate class in examples 2018-02-16 12:21:39 +08:00
ViewLimits.py Removed duplicate limit-setting arguments 2014-01-31 13:04:47 -05:00