Commit Graph

1812 Commits

Author SHA1 Message Date
Luke Campagnola
03c01d3b32 Fixes related to CSV exporter:
- CSV headers include data names, if available
  - Exporter correctly handles items with no data
  - pg.plot() avoids creating empty data item
  - removed call to reduce() from exporter; not available in python 3
  - Gave .name() methods to PlotDataItem, PlotCurveItem, and ScatterPlotItem
2013-12-19 12:30:00 -05:00
Luke Campagnola
a0b7e5a61c Corrected mouse clicking on PlotCurveItem - now uses stroke outline instead of path shape
Added 'width' argument to PlotCurveItem.setClickable()
2013-12-19 09:56:58 -05:00
Luke Campagnola
4e9e75817f Added Qt.loadUiType function for PySide
Added example of simple Designer usage.
2013-12-17 21:23:37 -05:00
Luke Campagnola
768c2b3356 Merge branch 'version_strings' into develop
* __init__.py now contains latest release version string
* installing from git checkout that does not correspond to a release commit
  will result in a more descriptive version string
2013-12-15 13:19:00 -05:00
Luke Campagnola
6d57792dc6 Merge branch 'profilers' into develop
New Profiler class from Antony Lee:
* Simpler API (with backward compatibility)
* Individual Profilers can be enabled by environmental variable PYQTGRAPHPROFILE
2013-12-15 09:17:24 -05:00
Luke Campagnola
5b7f4124d9 * Made new profilers compatible with old API
* Adjusted output formatting for clearer representation of nested profilers
* Message string formatting deferred until finish to reduce overhead
2013-12-15 09:07:09 -05:00
Luke Campagnola
e4ca62448b Added Dock.raiseDock() method 2013-12-11 14:28:56 -05:00
Luke Campagnola
6ae0892ea0 Set version strings to 0.9.8 in source; these will be updated with major releases.
Added tools/setVersion script
setup.py now auto-generates version string based on pyqtgraph/__init__ and git info, if available
2013-12-01 10:23:45 -05:00
Antony Lee
f136b33033 Profilers controllable via PYQTGRAPHPROFILE.
A new function profiling system is implemented.  Most importantly, this
allows one to profile various internal functions directly by setting the
`PYQTGRAPHPROFILE` environment variable to a comma separated list of
function and method names, e.g.

    PYQTGRAPHPROFILE=functions.makeARGB,ImageItem.render \
        python -mexamples

Specifically, items in `PYQTGRAPHPROFILE` must be of the form
`classname.methodname` or `dotted_module_name.functionname`, with the
initial "pyqtgraph." stripped from the dotted module name.

Moreover, the overhead of inactive profilers has been kept minimal: an
introspective check of the caller's name (only if `PYQTGRAPHPROFILE` is
set) and a trivial function (not method) call per profiler call.

The new profilers rely on `sys._getframe` to find the caller's name,
although the previous system (passing the caller's name explicitely)
could certainly have been kept instead.

Finally the API of profilers has been changed: register a
profiling point simply by calling the profiler, and profilers are
automatically flushed on garbage collection.  See the docstring of
`pyqtgraph.debug.Profiler` for more details.
2013-11-27 09:57:46 -08:00
Luke Campagnola
4486272737 Catch OverflowError from Point.length() 2013-11-25 01:16:21 -05:00
Luke Campagnola
c1f72b29c6 Merge branch 'faster-make-argb' into develop
- Speed improvements in functions.makeARGB
- ImageItem is faster by avoiding makeQImage(transpose=True)
2013-11-24 21:11:21 -05:00
Luke Campagnola
71ee4deb84 - fixed ImageItem handling of rgb images
- fixed makeARGB re-ordering of color channels
2013-11-24 21:10:06 -05:00
Luke Campagnola
bd2330af9f ImageItem performance boost by avoiding makeQImage(transpose=True) 2013-11-24 20:45:10 -05:00
blink1073
a08b28c958 Simplify to take transpose logic out of makeARGB function 2013-11-24 15:50:28 -06:00
blink1073
ddce17dc62 Undo remove trailing whitespace 2013-11-23 23:08:18 -06:00
blink1073
85d7116482 Speedups for making ARGB arrays 2013-11-23 23:02:19 -06:00
Luke Campagnola
d34bdb1be7 corrected GradientWidget.__all__ 2013-11-22 09:33:02 -05:00
Luke Campagnola
6e74df28a0 Merge branch 'dont-copy-context-menu' into develop
This allows ViewBox context menus to be modified by directly manipulating ViewBox.menu
2013-11-21 23:38:44 -05:00
Luke Campagnola
19cf49bc7d fixed context menu handling for non-GraphicsItems 2013-11-21 23:29:03 -05:00
Luke Campagnola
8deaf0866f avoid division by zero when ViewBox has size or aspect = 0 2013-11-21 13:37:01 -05:00
Luke Campagnola
f05c10a80f removed unnecessary scipy import 2013-11-21 09:57:56 -05:00
Luke Campagnola
a972114b4f Fixed ViewBox not updating immediately after call to setAspectLocked 2013-11-21 07:56:30 -05:00
Antony Lee
23a0d6d7c0 Use actions of ViewBox's contextMenu in full menu.
The main change is on `ViewBox.getContextMenus`, which now returns an
up-to-date of actions that `GraphicsScene.addParentContextMenus` can use.

Also, `getContextMenus` was given a default implementation in the base
class (falling back on `getMenu` if defined), and some cleanup was done.
2013-11-20 12:23:07 -08:00
Luke Campagnola
0a5cb62a6f ImageItem now has auto downsampling; seems to be working properly.
Still need auto clipping as well.
2013-11-20 13:51:39 -05:00
Luke Campagnola
193b1097b2 Merge branch 'axis_unicode_fix' into develop 2013-11-19 14:47:03 -05:00
Luke Campagnola
901e8ae596 Fixed unicode handling in AxisItem label 2013-11-19 14:45:57 -05:00
Luke Campagnola
5b905cde8b Override ViewBox.popup() to update menu before showing
Extend ViewBox menu in examples/contextMenu
2013-11-19 07:46:17 -05:00
Luke Campagnola
5b156cd3d3 Fixes for multiprocess / RemoteGraphicsView:
- Process now optionally wraps stdout/stderr from child process to
  circumvent a python bug
- Added windows error number for port-in-use check
- fixed segv caused by lost QImage input in pyside
2013-11-17 22:32:15 -05:00
Antony Lee
2e61be739f Don't copy the context menu of ViewBoxes.
This allows customization of the context menu of a ViewBox simply by
calling viewbox.menu.addAction(...).  See issue #13.  Also some cleanup.
2013-11-17 14:21:13 -08:00
Luke Campagnola
1418358bfb Fixed RemoteGraphicsView passing mouse events on python3 + pyside 2013-11-17 14:12:00 -05:00
Luke Campagnola
08be09ee40 Fixed RemoteGraphicsView on windows
- Avoid using authkey on windows; seems to be broken
 - Included yet another method of accessing shared memory as QImage
2013-11-17 09:27:55 -07:00
Luke Campagnola
8d7ab108fd Fixed PySide issues by removing itemChange methods from GraphicsWidget and ViewBox;
Workaround is for ViewBox to see whether its scene has changed every time it paints.

Fixes: 12
2013-11-16 20:23:41 -05:00
luke
25d666a1da Avoid calling QGraphicsWidget.itemChange--this causes segfault in python3 + pyqt
Fixes #10
2013-11-15 22:05:09 -05:00
Antony Lee
dac7eb5817 Faster import of PyQtGraph.
* RawImageWidget (and thus OpenGL) isn't imported by default anymore.
* scipy.stats.scoreatpercentile is replaced by numpy.percentile.

This commit has not been tested as the example runner is currently
broken.
2013-11-15 11:00:12 -08:00
Luke Campagnola
ef2ffdd88c Fixed bug: ViewBox context menu elements are no longer deleted when using flowchart + pyside 2013-11-14 14:01:25 -05:00
Luke Campagnola
f8772d179f removed unused variable 2013-11-14 12:16:31 -05:00
Luke Campagnola
810b90a1e6 Minor fix in ScatterPlotItem handling of per-point data 2013-11-10 23:25:07 -05:00
Luke Campagnola
ccc5e6274a Fixes:
- GraphItem reports pixel margins to improve auto-range
 - ViewBox.setRange is more careful about disabling auto range for axes that are set
2013-11-07 12:05:05 -05:00
Luke Campagnola
58ed8ee7bd ViewBox overhaul. Cleaned up code pathway:
- setRange now only affects target range
  - updateViewRange only affects view range
  - updateMatrix only affects childGroup transform
  - updateMatrix is only called before a render

Pathway now looks like:
        setRange -> updateViewRange -> matrix dirty -> ...
                                    -> sigRangeChanged

        ... -> prepareForPaint -> updateAutoRange, updateMatrix if dirty
2013-11-06 23:26:57 -05:00
Luke Campagnola
31928e70a5 Bugfixes:
- GraphicsView.render now correctly invokes GraphicsScene.prepareForPaint
 - Fixed RemoteGraphicsView renderer to use new PyQt QImage API.
 - multiprocess.Process now pipes stdout/err directly to console when in debugging mode
2013-11-06 23:14:27 -05:00
Luke Campagnola
ea8079334f Correct ViewBox.translate to use setRange(x, y) when possible rather than making two calls. 2013-11-06 15:35:24 -05:00
Luke Campagnola
96a4ff7cd5 Fixes:
- ROI updates on sigTransformChanged
  - ViewBox is more careful about accepting all auto-range changes up to the point it is disabled, even if the auto-range calculation is deferred.
2013-11-04 22:07:43 -05:00
Luke Campagnola
0daae425a3 A bit more flow reorganization 2013-11-03 19:41:05 -05:00
Luke Campagnola
6083521387 Initial success. Testing and further reorganization to follow. 2013-11-03 17:55:57 -05:00
Luke Campagnola
a4103dd152 Mid-way through overhaul. Proposed code path looks like:
setRange -> updateViewRange -> matrix dirty
                            -> sigRangeChanged

    ... -> prepareForPaint -> updateAutoRange, updateMatrix if dirty
2013-11-03 17:10:59 -05:00
Luke Campagnola
ab1b1c6adf Added ViewBox test suite 2013-10-25 10:33:41 -04:00
Luke Campagnola
662af1a9c5 ignore test directories in top-level __init__ imports 2013-10-25 10:31:30 -04:00
Luke Campagnola
84a845185e Fix: when ViewBox is resized, update range if it is linked to another view 2013-10-20 11:06:57 -04:00
Luke Campagnola
bb2ecd033c minor fix 2013-10-18 15:10:44 -04:00
Luke Campagnola
f19df05bdf Allow AxisItem.setScale(None) to retain API backward compatibility. 2013-10-18 15:02:17 -04:00
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