Commit Graph

1812 Commits

Author SHA1 Message Date
Luke Campagnola
03fd45c24a Updated documentation to match previous API change 2013-10-18 14:59:17 -04:00
Luke Campagnola
390f78c810 Fixed improper tick spacing and axis scaling
This requires an API change:
 - AxisItem.setScale(float) has the usual behavior
 - AxisItem.setScale(None) is no longer allowed. Instead use:
 - AxisItem.enableAutoSIPrefix(bool) to enable/disable SI prefix scaling
Also makes the API more intuitive since these features are now accessed and implemented independently.
2013-10-18 14:47:49 -04:00
Luke Campagnola
ea6f4ef442 Add backport ordereddict to repository
Merge remote-tracking branch 'kif/master' into develop

Conflicts:
	pyqtgraph/pgcollections.py
2013-10-18 11:21:15 -04:00
Luke Campagnola
b993c64c48 Workaround for OrderedDict bug: import from 'ordereddict' backport module if available 2013-10-18 09:46:48 -04:00
Jerome Kieffer
4052c3e9d1 Ordereddict exploses with python2.6 ...
Use the official backport
2013-10-17 20:19:30 +02:00
Guillaume Poulin
d22403f84f Correct symbols position 2013-09-24 17:13:13 +08:00
Guillaume Poulin
36979b67ea Clean ScatterPlotItem 2013-09-24 17:06:51 +08:00
Guillaume Poulin
73a079a649 Improve ScatterPlotItem.py
Add optimization for PySide, Plot only visible symbole, cache rectTarg
2013-09-24 16:12:29 +08:00
Guillaume Poulin
bd43a7508a Rename self.tar to self.target 2013-09-23 17:47:33 +08:00
Guillaume Poulin
c3576b1c09 Some few more optimization to ScatterPlotItem 2013-09-23 16:45:43 +08:00
Guillaume Poulin
f5ee45ac28 Improve ScatterPlotItem
Slightly faster and more memory efficient, correct python 3 bug
2013-09-23 00:45:55 +08:00
Guillaume Poulin
26b84693a8 Modify for loop into map in ScatterPlotItem.py 2013-09-22 23:10:18 +08:00
Guillaume Poulin
63bf2b3270 optimize ScatterPlotItem with pxMode=True 2013-09-20 15:46:10 +08:00
Luke Campagnola
54ca31f91b Added ImageExporter error message for zero-size export 2013-09-19 12:13:16 -04:00
Luke Campagnola
d8f9fb0781 Added GLBarGraphItem 2013-09-18 12:27:46 -04:00
Luke Campagnola
8b58416d1d minor edits 2013-09-18 12:27:01 -04:00
Luke Campagnola
58048a703c - Removed inf/nan checking from PlotDataItem and PlotCurveItem; improved performance
- Added 'connect' option to PlotDataItem and PlotCurveItem to affect which line segments are drawn
- arrayToQPath() added 'finite' connection mode which omits non-finite values from connections
2013-09-13 03:27:26 -04:00
Luke Campagnola
f6ed67fc33 merged SVG export fixes for python 3 2013-09-10 10:40:19 -04:00
Guillaume Poulin
b48e0e9eb5 Restore utf-8 compatibility for python 2 2013-09-10 22:34:20 +08:00
Guillaume Poulin
59ada9b1b4 More bugfixes in SVGExporter.py 2013-09-10 22:12:55 +08:00
Guillaume Poulin
35ea55897e python3 bugfixes (SVGexpoter) 2013-09-10 20:57:56 +08:00
Luke Campagnola
bb3533ab81 Workaround for pyside bug: https://bugs.launchpad.net/pyqtgraph/+bug/1223173 2013-09-10 02:51:57 -04:00
Luke Campagnola
881589468d Python 3 bugfixes 2013-09-10 00:31:43 -04:00
Luke Campagnola
f997b3079b Added GLBarGraphItem example
GLMeshItem accepts ShaderProgram or name of predefined program
Added missing documentation to GLGraphicsItem
minor edits
2013-09-06 15:36:36 -04:00
Guillaume Poulin
dfa2c8a502 solve some issue with opengl and python3 2013-09-05 04:37:41 +08:00
Guillaume Poulin
c02e6184ef merge inp 2013-09-05 00:28:03 +08:00
Luke Campagnola
91aa2f1c16 fixed TextParameter editor disappearing after focus lost 2013-08-27 12:00:26 -06:00
Luke Campagnola
42553854a9 pg.plot() and pg.PlotWidget() now accept background argument
ImageExporter correctly handles QBrush with style=NoBrush
2013-08-23 22:27:09 -06:00
Luke Campagnola
824e4b378b Corrected behavior of GraphicsView.setBackground 2013-08-23 22:08:32 -06:00
Luke Campagnola
d3f56c6df3 fixed PySide bug listing image formats 2013-08-22 10:02:39 -06:00
Luke Campagnola
160b1ee45f Python3 bugfixes 2013-08-21 10:40:19 -06:00
Luke Campagnola
6b3cfbc6fb Fixed parametertree selection bug 2013-08-18 23:02:01 -04:00
Luke Campagnola
2095a4c8ae Support for FFT with non-uniform time sampling 2013-08-16 21:28:03 -04:00
Luke Campagnola
79bd7ea187 documentation, bugfix 2013-08-04 14:36:14 -04:00
Luke Campagnola
ef8c47e8c8 Allow QtProcess without local QApplication 2013-08-04 14:35:28 -04:00
Luke Campagnola
3eeffd3b1d GLLinePLotItem accepts array of colors (thanks Felix!) 2013-07-13 16:42:36 -04:00
Luke Campagnola
6131427dea added error message when GL shaders are not available 2013-07-13 16:06:48 -04:00
Luke Campagnola
46901ae83a ListParameter bugfix: allow unhashable types as parameter values. 2013-07-12 13:14:09 -04:00
Luke Campagnola
5a2b946205 ViewBox bugfixes:
- drag rect now has large ZValue
  - fixed view linking with inverted y axis
2013-07-10 14:30:16 -04:00
Luke Campagnola
7cd3e663f9 experimental GL video widget
temporary fix for text parameter ignoring expanded option
Don't use os.EX_OK in pg.exit()
2013-07-10 00:02:16 -04:00
Guillaume Poulin
a290a39779 merge with inp 2013-07-05 00:09:30 +08:00
Luke Campagnola
a20e732f65 Added GL picking, matrix retrieval methods 2013-07-04 11:21:50 -04:00
Luke Campagnola
934e50ad55 Added python3 support for efficient method in arrayToQPath 2013-07-04 08:34:18 -04:00
Guillaume Poulin
f2d0991102 Minor fixes for py3k 2013-07-04 05:52:16 +08:00
Luke Campagnola
6e253e409b merge from acq4:
- Support for dynamic downsampling and view clipping in PlotDataItem / PlotItem
  - fixed __truediv__ handling
  - ViewBox updates to fix aspect locking (still broken)
  - AxisItem tries to be more clever about when to display tick text
  - Fix segmentation fault caused by exception inside GraphicsItem.paint()
  - Added 'x' scatter plot symbol
  - pg.mkPen supports dashes
2013-07-03 11:36:07 -04:00
Luke Campagnola
8c13a3e7e3 copy from acq4 2013-07-03 11:20:49 -04:00
Luke Campagnola
79e2b1403b minor edits 2013-07-03 08:54:18 -04:00
Luke Campagnola
f03703e78f corrected exception error message 2013-06-20 08:44:46 -04:00
Luke Campagnola
adda8ae24d New methods in use for converting array -> QImage.
This fixes memory leaks with PyQt 4.10 _except_ when using makeQImage(copy=False).
Tested on 4.9.3 and 4.10.2; need to be tested against other versions.
2013-06-19 19:36:46 -04:00
Luke Campagnola
cbd0efe79a ImageItem informs ViewBox when its size changes
Minor edits
2013-06-19 19:32:55 -04:00
Luke Campagnola
fa354ea4a3 bugfix in ViewBox.clear 2013-06-19 19:30:23 -04:00
Luke Campagnola
1b17bc6adb export uses padding to prevent edge effects 2013-06-19 09:10:14 -04:00
Luke Campagnola
e864043e76 delete texture and framebuffer after export 2013-06-18 21:46:50 -04:00
Luke Campagnola
3656b02237 Enabled piecewise export 2013-06-18 10:55:25 -04:00
Luke Campagnola
2243082d4b Added export methods to GLViewWidget 2013-06-16 23:31:27 -04:00
Luke Campagnola
aa85ed2828 fixed QString -> str conversions in flowchart 2013-06-07 17:05:54 -04:00
Luke Campagnola
f5435b7798 Fixed ScatterPlotItem.renderSymbol device argument 2013-06-01 07:54:55 -04:00
Luke Campagnola
3d820400d3 Added GLLinePlotItem documentation 2013-05-31 14:04:04 -04:00
Luke Campagnola
9a20d051cb Fixed unicode support in export file save 2013-05-31 10:15:40 -04:00
Luke Campagnola
59bbe0127e ImageView cleanups
- fixed auto-levelling when normalization options change
- added autoHistogramRange argument to setImage
2013-05-30 09:33:09 -04:00
Luke Campagnola
ba56899a36 Added basic wireframe mesh drawing 2013-05-29 14:33:14 -04:00
Luke Campagnola
af4980d153 merged bugfixes 2013-05-29 08:21:10 -04:00
Luke Campagnola
96a5f9290d Fixed ItemSample handling of ScatterPlotItem 2013-05-29 08:16:34 -04:00
Luke Campagnola
ba31b3d7ba Legends can be dragged by user 2013-05-28 18:47:33 -04:00
Luke Campagnola
7a7288b6b3 Fixed documentation for 'uver/under' in DockArea
Configure matplotlib to use PySide in MatplotlibWidget
2013-05-28 15:31:10 -04:00
Luke Campagnola
ee0825d677 Allow custom ItemSamples in LegendItem. 2013-05-22 14:35:14 -04:00
Luke Campagnola
91ac29bf23 Added basic symbol support to LegendItem 2013-05-22 14:27:19 -04:00
Luke Campagnola
a55d58024d Added Dock.close()
Fixed bugs in functions weave usage
Documented ROI signals
Fixed 3D view updating after every scene change
2013-05-22 14:09:56 -04:00
Luke Campagnola
017adec032 merge with inp 2013-05-13 14:48:16 -04:00
Luke Campagnola
720c5c0242 Fixed handling of non-native dtypes when optimizing with weave 2013-05-13 14:46:53 -04:00
Luke Campagnola
3344fb69ce merge fixes 2013-05-13 08:53:56 -04:00
Luke Campagnola
09b16baed1 python3 fixes
imageview fix
2013-05-13 08:51:59 -04:00
Luke Campagnola
671e624f17 Fixes:
AxisItem correctly handles scaling with values that are not power of 10
Can remove items from legend
updated plotItem setLogMode to allow unspecified axes
2013-05-09 23:02:14 -04:00
Luke Campagnola
00e865f56c minor fix in AxisItem 2013-05-05 10:54:47 -04:00
Luke Campagnola
e0e1123d33 fixed import statements python3 compatibility
PolyLineROI.getArrayRegion correctly applies mask to N-dimensional data
fixed multiprocess for python2.6 compatibility
2013-04-29 08:13:28 -04:00
Luke Campagnola
1a0b5921df remotegraphicsview fix for PyQt 4.10 2013-04-07 16:18:58 -04:00
Luke Campagnola
fde4267ccc Corrected use of setGLOptions for image, axis, and box 2013-04-07 09:16:21 -04:00
Luke Campagnola
09bc17bdb5 Fixed GLLinePlotItem line width option
Added antialiasing to GL line items
2013-03-30 22:39:11 -04:00
Luke Campagnola
70ec358995 Fix: make HistogramLUTWidget obey default background color 2013-03-30 22:26:32 -04:00
Luke Campagnola
5bb5c7487c Prevent updating ViewBox matrix in setRange when no changes have been made to range 2013-03-30 22:25:46 -04:00
Luke Campagnola
ee89b291dc Axis line can optionally stop at the last tick 2013-03-28 12:34:17 -04:00
Luke Campagnola
829503f3d2 AxisItem updates:
- better handling of tick text / label area
  - ability to truncate axis lines at the last tick
2013-03-27 20:24:01 -04:00
Luke Campagnola
a67667b1ca Merged changes from acq4
Added style options to flowchart connection lines
SVG export bug - correctly handle coordinate corrections for groups with mixed elements
Updates to ScatterPlotWidget, DataFilterWidget, and ColorMapWidget
Added exit() function for working around PyQt exit crashes
Bidirectional pseudoScatter for beeswarm plots
Added several examples
Added BarGraphItem
Fixed GraphItem antialiasing
Added parentChanged and viewChanged hooks to GraphicsItem
Made LabelItem a subclass of GraphicsWidgetAnchor
Documented planned features for PlotDataItem (these should be fixed before next release)
ScaleBar complete rewrite
Re-fixed crash bug in ScatterPlotItem
fixed scatterplotitem antialiasing
2013-03-26 15:42:07 -04:00
Luke Campagnola
dbc8fe423b merged with inp 2013-03-26 13:48:14 -04:00
Luke Campagnola
8828892e55 merged many changes from acq4 2013-03-26 13:46:26 -04:00
Luke Campagnola
7fce0ce5cb Allow GraphicsView.setCentralItem(None) 2013-03-26 13:35:29 -04:00
Luke Campagnola
a50f74a1fc bugfix: https://bugs.launchpad.net/pyqtgraph/+bug/1157857 2013-03-22 15:52:44 -04:00
Luke Campagnola
ff59924ee0 fixed mouse scaling issue introduced in inp a few commits ago
added panning plot example
2013-03-19 21:22:23 -04:00
Luke Campagnola
e656366fab fixed panning bug introduced in inp:274 2013-03-19 20:54:05 -04:00
Luke Campagnola
f029e7893e merged with inp 2013-03-19 16:05:32 -04:00
Luke Campagnola
cefb4f9828 merged updates from acq4 2013-03-19 16:04:46 -04:00
Luke Campagnola
4716a84117 AxisItem bugfix: corrected x-linked view update behavior
Added MultiplePlotAxes example
2013-03-19 11:49:10 -04:00
Luke Campagnola
87f45186d8 bugfix: prevent auto-range disabling when dragging with one mouse axis diabled 2013-03-17 15:16:27 -04:00
Luke Campagnola
ad20103ccc Check for length=0 arrays when using autoVisible 2013-03-17 14:26:23 -04:00
Luke Campagnola
2f510de2ca Added PolyLineROI.getArrayRegion 2013-03-13 17:17:39 -04:00
Luke Campagnola
4839998574 merged with inp branch 2013-03-07 15:33:59 -05:00
Luke Campagnola
2a27687fb2 merged updates from acq4 2013-03-07 15:29:56 -05:00
Luke Campagnola
db5c303fad TableWidget updates:
- Made numerically sortable
  - Added setEditable method
  - Added example
2013-03-06 06:27:24 -05:00
Luke Campagnola
916face815 Merged TableWidget updates from Laugher 2013-03-06 05:43:02 -05:00
Brianna Laugher
e4314f883d Move setSortingEnabled to the widget init rather than after setting the data, otherwise weird sorting happens 2013-03-05 16:29:07 +11:00
Brianna Laugher
cba720730d Some extra bits - add sizeHint, make not editable, make columns sortable 2013-03-05 14:02:55 +11:00
Brianna Laugher
5254d29b6a Pylint cleanups - remove commented out code, fix formatting etc 2013-03-05 13:58:42 +11:00
Luke Campagnola
dd3603dc58 merge with inp 2013-03-04 21:12:25 -05:00
Luke Campagnola
2980f8335c bugfix: ignore inf and nan when auto-ranging
added experimental opengl line-drawing code
2013-03-04 19:43:51 -05:00
Luke Campagnola
0642f38657 Flowcharts get cubic spline connectors 2013-02-27 16:42:43 -05:00
Luke Campagnola
83812ad5b8 Bugfixes:
- AxisItem did not update grid line length when plot stretches
  - Workaround for PySide/QByteArray memory leak
2013-02-26 21:54:56 -05:00
Luke Campagnola
475006f508 example loader allows editing code
Workaround for PySide bug; fixes GradientEditorItem
2013-02-25 13:03:21 -05:00
Luke Campagnola
491aee0fe2 python3 fixes
cleaned up examples
2013-02-24 23:09:03 -05:00
Luke Campagnola
1d2d7be733 When exporting, prefer to select PlotItem rather than ViewBox if possible
CSV exporter gets 'precision' option
2013-02-24 14:31:11 -05:00
Luke Campagnola
3c6081f3a4 fixed ScatterPlotItem.setSize and setData 2013-02-24 11:58:39 -05:00
Luke Campagnola
21dff0525a merge from inp, removed print statement 2013-02-24 11:37:17 -05:00
Luke Campagnola
8e5133c873 minor fixes from acq4 2013-02-24 11:32:35 -05:00
Luke Campagnola
412e1d2ec8 doc updates
ViewBox: made padding more consistent for all auto-ranging methods, deprecated autoRange(item=) in favor of autoRange(items=)
2013-02-20 11:13:50 -05:00
Luke Campagnola
86861b5a06 Fixed dock dragging on pyside
Added imageview.setImage argument documentation
2013-02-15 15:22:05 -05:00
Luke Campagnola
783af1a918 fix for python 2.6 compatibility 2013-02-15 11:01:03 -05:00
Luke Campagnola
9c70d948aa Fixed ArrowItem auto-range 2013-02-14 14:22:30 -05:00
Luke Campagnola
815746895d Fixed GLSurfacePlot bug 2013-02-13 17:11:47 -05:00
Luke Campagnola
ccc81c6919 mp fixes 2013-02-13 11:43:22 -05:00
Luke Campagnola
4dbc411d19 minor fixes 2013-02-12 23:10:25 -05:00
Luke Campagnola
9f55a27fdd More boundingRect / dataBounds bugfixes 2013-02-12 21:44:42 -05:00
Luke Campagnola
93a5753f5d Fixed auto ranging for scatter plots 2013-02-12 19:15:45 -05:00
Luke Campagnola
a80f150b86 merge with inp 2013-02-11 21:47:00 -05:00
Luke Campagnola
4cec9ff044 Added ErrorBarItem to repository 2013-02-11 21:45:41 -05:00
Luke Campagnola
c80bfb334c Fix for new QImage API in PyQt 4.9.6 2013-02-11 16:38:13 -05:00
Luke Campagnola
22bc2333a8 bugfixes 2013-02-10 21:04:00 -05:00
Luke Campagnola
6e5c5e402b merged many new features from ACQ4 2013-02-10 17:45:16 -05:00
Luke Campagnola
6e0e83e926 merge with inp 2013-02-10 14:17:30 -05:00
Luke Campagnola
97da32c4ec minor edit 2013-02-10 14:16:21 -05:00
Luke Campagnola
9fcb734863 merge from acq4 branch 2013-02-10 14:13:27 -05:00
Luke Campagnola
510b1b3fad Added some documentation for ArrowItem 2013-02-10 14:12:56 -05:00
Luke Campagnola
4c887c8f50 Merge new fixes and features from acq4 2013-02-10 14:10:30 -05:00
Luke Campagnola
0158e015e9 merged bugfix 2013-02-10 13:59:29 -05:00
Luke Campagnola
175aef2b75 Bugfix: "QGraphicsScene is not defined" 2013-02-10 13:56:42 -05:00
Luke Campagnola
5bd3adfa7c merge from acq4 2013-01-30 15:59:48 -05:00
Luke Campagnola
ee21e2d054 fixed scatterplotitem segfault
added graphitem
2013-01-30 15:56:08 -05:00
Luke Campagnola
413a8f930e Bugfixes:
- ViewBox ignore bounds on zoom box
- Fixed improper pixel size caching
- Fixed check for 'win' in sys.platform (matches 'darwin' as well)
2013-01-30 15:51:38 -05:00
Luke Campagnola
899663c6ca bugfixes for scatterplot boundary miss
added method for setting axis tick font
2013-01-24 13:47:05 -05:00
Luke Campagnola
18d5c6644b Added more documentation for parametertree and AxisItem
Fixed linearRegionItem hilight when not movable
2013-01-19 07:48:31 -05:00
Luke Campagnola
4dc9b83816 Fixes for Python3, PySide 2013-01-12 18:07:35 -05:00
Luke Campagnola
296b709550 import numpy in pyqtgraph.__init__ to avoid confusing import errors 2013-01-12 14:39:23 -05:00
Luke Campagnola
c5dd0f4f63 Fixed print statements for python 3 2013-01-12 14:35:32 -05:00
Luke Campagnola
9a9fc15873 Bugfixes:
- GraphicsItem.pixelVectors copies cached results before returning
  - Multiprocess fixes for Windows:
      - mmap/shm uses anonymous maps rather than tempfiles
      - avoid use of getppid and setpgrp
      - work around hmac authentication bug (use os.urandom to generate key)
2013-01-12 14:31:49 -05:00
Luke Campagnola
6903886b3a Fixes against previous commits:
- fixed example testing script
 - Added finer axis ticks back in some instances
 - fixed improper bounds caching in log/fft mode
 - fixed exception handling in remoteproxy
2013-01-11 20:21:11 -05:00
Luke Campagnola
513e904a59 Improved performance for remote plotting:
- reduced cost of transferring arrays between processes (pickle is too slow)
  - avoid unnecessary synchronous calls

Added RemoteSpeedTest example
2013-01-10 16:10:27 -05:00
Luke Campagnola
01b8968a0a Performance improvements:
- AxisItem shows 2 tick levels instead of 3
  - Lots of boundingRect and dataBounds caching
    (improves ViewBox auto-range performance, especially with multiple plots)
  - GraphicsScene avoids testing for hover intersections with non-hoverable items
    (much less slowdown when moving mouse over plots)
These are deep changes; need good testing before we release them.
2013-01-09 22:21:32 -05:00
Luke Campagnola
d5112df8f7 Actually added flowchart documentation this time. 2013-01-07 12:11:23 -05:00
Luke Campagnola
b66e6e8ad6 Speed up PlotCurveItem in some cases (avoid drawing shadow when it is not needed) 2013-01-07 10:45:17 -05:00
Luke Campagnola
60836462d2 Updated flowchart documentation 2013-01-07 10:45:03 -05:00
Luke Campagnola
5786a627b5 Added deprecation warning for Node.__getattr__
Expanded flowchart.Node docstrings
Added custom node example
2013-01-04 12:05:36 -05:00
Luke Campagnola
b0030e1a49 Bugfixes:
- Fixed RuntimeError when clearing items from ViewBox
- SVG exporter adds generic font-family names to text items
2012-12-29 02:35:45 -05:00
Luke Campagnola
f32a04a433 SVG export fixes:
- unicode support for text objects
  - always export in scene coordinates with offset from root item
2012-12-28 16:23:28 -05:00
Luke Campagnola
ce05e6fb8a merged with acq4 2012-12-27 14:54:00 -05:00
Luke Campagnola
8d5e24c8fd Removed incorrect version numbers 2012-12-27 11:53:22 -05:00
Luke Campagnola
b9822b1d10 Fixed doc version (again)
Added debian control files
2012-12-27 03:13:35 -05:00
Luke Campagnola
7f51813c2c Added MANIFEST.in for generating cleaner source distributions
updated versioning system
2012-12-27 01:52:32 -05:00
Luke Campagnola
4a39c1e3a4 Fixed bug 1089042 (AttributeError in PlotItem) 2012-12-26 20:12:49 -05:00
Luke Campagnola
72f66f7531 merge pyqtgraph from dev 2012-12-26 18:54:12 -05:00
Luke Campagnola
5374afeca8 Added basic 3D line plot class 2012-12-26 15:22:44 -05:00
Luke Campagnola
51e88bd436 SVG export fixes 2012-12-26 13:48:12 -05:00
Luke Campagnola
49e2177623 SVG export looks good. 2012-12-26 08:42:48 -05:00
Luke Campagnola
b0e0781624 svg exporter updates 2012-12-25 22:20:31 -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