Commit Graph

171 Commits

Author SHA1 Message Date
Luke Campagnola
15d9c1b351 PlotCurveItem now has 'step' mode for drawing histograms
Added function for generating pseudo-scatter plots (points stack in a histogram-like manner)
2012-10-22 13:35:58 -04:00
Luke Campagnola
16434272c2 Bugfix: ScatterPlotItem not updating correctly when view is resized
Documentation updates (linked GLImageItem and Legend item to indexes)
2012-10-22 13:34:03 -04:00
Luke Campagnola
65ed889a77 Added very basic LegendItem. Functional, but still missing some basic features.
Added GLImageItem and example.
2012-10-18 23:18:20 -04:00
Luke Campagnola
1c8579d4b4 - Bugfixes:
Fixed exporters to automatically add filename extension.
    Fixed ViewBox 'auto pan' option.
- Other minor edits.
2012-10-18 22:51:46 -04:00
Luke Campagnola
c4019b900d Overhaul of ScatterPlotItem to improve performance. (API should be mostly unchanged)
Much more efficient at rapid updates.
2012-10-18 22:48:36 -04:00
Megan Kratz
c039074e79 bugfix for ViewBox.childrenBounds -- vertical infiniteLines were not being included in autoscale range 2012-10-15 15:41:11 -04:00
Luke Campagnola
64be9c8b1f converted all png files to compiled .py file; this allows easier packaging with py2exe 2012-10-11 11:14:35 -04:00
Luke Campagnola
5081c97ac5 Better support for frozen environments:
- built in Christian Gavin's os.listdir replacement
  - added os.isdir replacement
Fixed ViewBox causing errors at shutdown
2012-10-11 00:57:24 -04:00
Luke Campagnola
1d05656a73 - Fixed issue with numpy.concatenate wrapper
- ConsoleWidget now correctly catches its own exceptions
- Fixed ViewBox auto-scaling bug
- Fixed functions.siEval not parsing units correctly
- Fixed bug caused when opengl GL_VERSION_STR is None
2012-10-09 20:40:48 -04:00
Luke Campagnola
844dbb20a5 Fixed error message in Qt.py
Made scipy optional in functions and ImageItem
2012-10-06 16:58:35 -04:00
Luke Campagnola
c2f0bebe09 Added functions.transformCoordinates() for mapping numpy arrays of coordinates from QTransform and QMatrix4x4
Minor updates:
- fixed SRTTransform3D.matrix()
- ViewBox fix: updateAutoRange leaves unused axes completely unchanged
- documentation updates
2012-10-06 16:56:53 -04:00
Luke Campagnola
ced5583ae1 fixed error message in Qt.py
made scipy optional in functions and ImageItem
2012-10-06 02:23:23 -04:00
Luke Campagnola
27c90c5dd5 Many minor updates:
- added ability for ScatterPlotItem to use arbitrary symbol shapes
- added scatter plot speed test for evaluating new methods
- added butterworth notch filter to flowchart library
- fixed bugs with ViewBox trying to close itself after python has started cleaning up
- fixed python 2.6 compatibility bug in PlotCurveItem
- fixed support for list-of-dicts and dict-of-lists input for PlotDataItem
- check to ensure Qt version is >= 4.7
- workaround for numpy segmentation fault
- several other minor updates and documentation changes
2012-10-02 21:23:59 -04:00
Luke Campagnola
ca9d0ed147 Added preliminary support for python 2.6
Fixed setup.py to automatically search for all sub-packages
2012-09-13 10:12:59 -04:00
Luke Campagnola
c022f3a10f Bugfixes:
- initialize ImageItem.menu
 - fixed default argument for ROI.getAffineSliceParams(axes)
2012-09-11 10:26:34 -04:00
Luke Campagnola
32311351f1 Now detects and switches between PyQt / PySide automatically; no need to distribute different versions of the library anymore. 2012-09-09 19:07:36 -04:00
Luke Campagnola
f9a7dad5dc Minor changes:
- ROI.getArrayRegion makes sure the ROI and image share the same scene
  - Added a few binary operator methods to metaarray 
  - Fixed flowchart/eq.py handling of metaarray objects
2012-09-09 18:56:48 -04:00
Luke Campagnola
5a4fd82cd9 merge with dev branch repository 2012-08-31 17:23:19 -04:00
Luke Campagnola
0402d08604 Minor updates and bug fixes:
- fixed handling of foreground colors in AxisItem
  - fixed rare crash caused in AxisItem 
  - fixed improper propagation of key events from SpinBox
  - many others
2012-08-31 17:18:06 -04:00
Luke Campagnola
c71ee6ed6f Minor documentation fixes 2012-08-23 11:17:40 -04:00
Luke Campagnola
b88f0a22a2 ImageView can now be initialized with custom view and image objects 2012-08-03 00:29:05 -04:00
Luke Campagnola
c686395ebe ImageView fix: display correct coordinates in ROI plot for scaled, single-frame images
Minor documentation updates
2012-08-02 22:46:08 -04:00
Luke Campagnola
a41d330c29 Bugfixes:
- Fixed some floating-point precision issues. (Added a workaround for QTransform.inverted() bug)
  - No longer putting asUnicode inside __builtin__ since this causes problems in some rare circumstances
    (pyshell, lazy import recipe)
  - Minor docstring updates
2012-07-12 15:35:58 -04:00
Luke Campagnola
2213dea9d8 Bugfixes
- AxisItem.setScale(1) works properly to disable auto-value-scaling
- OpenGL fixes (stack overflow when drawing items, improper call to glPopAttrib)
2012-07-09 14:41:10 -04:00
Luke Campagnola
662b319d7b - PlotItem can now be constructed with customized ViewBox and AxisItems
- Text spacing fix for AxisItem
2012-07-09 08:38:30 -04:00
Luke Campagnola
f178919bee Python3 compatibility updates 2012-07-09 08:36:59 -04:00
Luke Campagnola
6d01aa2b09 Bugfixes:
- workaround for PySide exit crash
- fixed alpha of major/minor grid lines
2012-07-03 14:44:07 -04:00
Luke Campagnola
73e94f543c Parallelize now reseeds random number generators after fork()
Bugfix -- AxisItem enforces tick boundaries more strictly
2012-06-30 23:32:26 -04:00
Luke Campagnola
3d71a1f555 Documentation updates
minor code edits
2012-06-30 23:30:35 -04:00
Luke Campagnola
ad7b5f0aad - Default foreground / background colors can now be set using pyqtgraph.setConfigOption()
- Added pyqtgraph.systemInfo() for bug reporting
- GraphicsLayout does a better job of avoiding occupied cells when using automatic placement
- Fixed sizing issues with LabelItem
- Updated GraphicsLayout example
2012-06-29 14:39:27 -04:00
Luke Campagnola
cc93c7ba43 Minor edits and fixes 2012-06-21 21:52:34 -04:00
Luke Campagnola
acb3230b78 bugfix -- GraphicsItem automatically determines qt base class. 2012-06-18 19:51:18 -04:00
Luke Campagnola
3f486d9a65 minor code cleanup
bugfixes for pyside-specific issues
2012-06-18 19:40:15 -04:00
Luke Campagnola
16c4e2929f fix for ScatterPlotItem / pyside 2012-06-18 17:47:56 -04:00
Luke Campagnola
f9310d64c7 Imported code for disabling ViewBox menus from Ingo 2012-06-18 15:03:41 -04:00
Luke Campagnola
6932c34126 - Added workaround for Qt bug: https://bugreports.qt-project.org/browse/QTBUG-18616. (GraphicsItem.setParent needs to check for scene change first)
This _could_ cause other problems, but they will certainly be fewer than the existing problems.

- Fixed bugs with ViewBox linking to views which are subsequently deleted
2012-06-18 14:00:19 -04:00
Luke Campagnola
cc94e15d1e Minor edits and bugfixes
- fixed AxisItem sometimes drawing the same tick twice (sometimes with different text)
   - fixed handling of record arrays in setting ScatterPlotItem point data
2012-06-18 13:50:44 -04:00
Luke Campagnola
a4963f93b7 added flowchart node for removing periodic noise from waveform
metaarray updates:
  - better handling of HDF5 files
  - fixed some isinstance problems that appear during reloads
2012-06-18 13:45:47 -04:00
Luke Campagnola
e53c2165e6 Bugfixes:
- added workaround for Qt bug: https://bugreports.qt-project.org/browse/QTBUG-18616
  - allow pxMode argument in PlotDataItem.setData()
2012-06-12 16:02:48 -04:00
Luke Campagnola
7c87b1d04a Renamed Transform -> SRTTransform to better reflect its function.
Added SRTTransform3D
2012-05-31 16:22:50 -04:00
Luke Campagnola
26c73d3583 overhaul/cleanup of ROI code, particularly for PolyLineROI
(should be no major API changes here)
2012-05-31 16:08:33 -04:00
Luke Campagnola
0e1b57cf01 bugfixes for ArrowItem __init__ 2012-05-31 16:07:23 -04:00
Luke Campagnola
ce5fef9675 Added new ROI example 2012-05-30 01:02:03 -04:00
Luke Campagnola
de5d388a46 Merged ROI/Handle context menus and PolyLineROI from Kratz 2012-05-29 23:23:14 -04:00
Luke Campagnola
724debf2d4 Changed the way GraphicsItem.pixelVectors and pixelLength work.
The values returned are more useful now, but this introduces a minor API change.
2012-05-29 23:22:00 -04:00
Luke Campagnola
35357308b9 ArrowItem has more flexibility in the shapes it can draw 2012-05-29 23:19:20 -04:00
Luke Campagnola
f258c3d87c minor bugfixes / features:
- optional context menu for ImageItem
 - inverted y-axis in Canvas (+y now points upward)
 - extra __init__ arguments for Dock
 - Transform can be constructed from Matrix4x4
 - many others
2012-05-29 23:18:34 -04:00
Luke Campagnola
0f1f6c62e4 Enforced LF file endings
removed stray print statement
2012-05-23 20:29:16 -04:00
Luke Campagnola
4d1a5ded1b bugfixes
MetaArray update - no longer subclass of ndarray
2012-05-23 20:20:54 -04:00
Luke Campagnola
194f90aa4d AxisItem update: added setTicks method 2012-05-21 17:31:09 -04:00
Luke Campagnola
ff384b80d7 Accidentally left in drawn bounding rect for scatterplotitem 2012-05-15 13:38:32 -04:00
Luke Campagnola
00a885f735 minor bugfixes for scatterplotitem 2012-05-15 13:31:50 -04:00
Luke Campagnola
841006b79c - Fixes to ScatterPlotItem bounding rect calculation
- Moved some functionality from UIGraphicsItem upstream to GraphicsItem
2012-05-14 22:05:53 -04:00
Luke Campagnola
fc9b3dee4d Started Python3 compatibility changes 2012-05-11 18:05:41 -04:00
Luke Campagnola
13b201bebb ScatterPlotItem overhaul:
- performance improvements
  - removed 'identical' argument; this is now handled automatically
  - some minor API changes to SpotItem
2012-05-10 23:37:07 -04:00
Luke Campagnola
2a6cc84254 documentation fixes 2012-05-08 22:56:44 -04:00
Luke Campagnola
fd32dc7458 Added (and disabled; doesn't work very well at the moment) code for using drawPixmapFragments in ScatterPlotItem 2012-05-08 22:55:06 -04:00
Luke Campagnola
2e03c9719f documentation fixes / updates 2012-05-08 18:14:12 -04:00
Luke Campagnola
aadd02f819 documentation fixes 2012-05-08 18:03:00 -04:00
Luke Campagnola
f21c3986d5 Added ViewBox auto-ranging options:
- auto pan (center of view changes, but total range does not)
  - scale only to visible data (data outside of viewbox is ignored when auto-ranging)
2012-05-08 17:56:55 -04:00
Luke Campagnola
9107eed243 bugfix - corrected orientation problems in gradienteditoritem 2012-05-08 17:56:19 -04:00
Luke Campagnola
bfa1abacc1 Bugfix -- axisitem is now more careful about measuring text 2012-05-08 17:55:44 -04:00
Luke Campagnola
9b5c8d0ada ScatterPlotItem minor performance fixes
SpinBox bugfix - improper handling of arguments to setOpts in integer mode
2012-04-30 18:20:27 -04:00
Luke Campagnola
d436f4b634 Merge changes from Kratz:
- isocurveitem documentation
  - updates to GradientEditor and PlotItem docs
  - Fix for Canvas handling of item Z-position
2012-04-28 16:00:42 -04:00
Luke Campagnola
2e9440d927 merged with dev 2012-04-25 13:16:41 -04:00
Luke Campagnola
a71e4a5862 CheckTable now remembers and reloads the state of rows that disappear temporarily
Flowchart updates - added/fixed some display nodes
Merge from Kratz:
  - documentation updates
  - ComboBox class (updateList() allows entire item list to change while remembering previous setting)
2012-04-25 13:12:40 -04:00
Luke Campagnola
d55526a787 Corrected handling of positional arguments in PlotCurveItem.__init__ 2012-04-23 14:57:49 -04:00
Luke Campagnola
2149f9db29 Added documentation on 3D graphics system 2012-04-23 14:34:54 -04:00
Luke Campagnola
3bf4c2e336 merged upstream 2012-04-23 10:15:30 -04:00
Luke Campagnola
62cdaf0b46 bugfix: ScatterPlotItem generates any uncached spot items when calling points() 2012-04-23 10:11:09 -04:00
Luke Campagnola
b09862d2c1 bugfix: PlotDataItem now checks for inf as well as nan in data. 2012-04-23 10:10:03 -04:00
Luke Campagnola
537540382f bugfix 2012-04-22 13:17:10 -04:00
Luke Campagnola
edb7c514a2 merged with dev 2012-04-22 13:10:18 -04:00
Luke Campagnola
636795d395 bugfix - PlotItem y-grid check works now 2012-04-22 13:08:38 -04:00
Luke Campagnola
2a412a3e28 fixed some bugs in ScatterPlot's handling of meta-data 2012-04-22 13:07:50 -04:00
Luke Campagnola
4cfd58d8b9 doc fixes 2012-04-21 16:11:15 -04:00
Luke Campagnola
f8758dba39 PlotItem (finally) gets log scaling
Also cleaned up some context menu items
2012-04-21 15:57:47 -04:00
Luke Campagnola
8b721e7d78 doc update 2012-04-21 15:57:13 -04:00
Luke Campagnola
33bc81a121 Fixed click signal propagation for PlotDataItem 2012-04-21 15:55:27 -04:00
Luke Campagnola
c1963759a1 doc updates 2012-04-18 10:59:30 -04:00
Luke Campagnola
18182c157a merged fix from Ingo 2012-04-18 09:30:50 -04:00
Luke Campagnola
4eadccdcc1 documentation updates 2012-04-18 00:02:15 -04:00
Ingo Breßler
d8624f565b PlotItem.addCurve: fixed typo 2012-04-16 23:15:25 +02:00
Luke Campagnola
44f2a0ecc4 Documentation updates 2012-04-16 16:45:55 -04:00
Luke Campagnola
c44887e531 bugfix 2012-04-15 12:33:56 -04:00
Luke Campagnola
dc29a9060e documentation updates 2012-04-15 12:32:20 -04:00
Luke Campagnola
61ea03618a re-enabled wheel events for PlotItem 2012-04-15 10:56:41 -04:00
Luke Campagnola
727214ca45 docstring updates 2012-04-15 10:20:07 -04:00
Luke Campagnola
bdb6ff88a2 Updates to IsocurveItem, added isocurve example
minor updates for other examples
2012-04-04 12:22:43 -04:00
Luke Campagnola
6aef85331e Cleanup for AxisItem
- Made more extensible by breaking out tick spacing and text generating into separate methods
 - Text now tries harder to avoid overlapping
2012-04-04 09:31:58 -04:00
Luke Campagnola
78d4bc0838 Performance enhancements
- HistogramLUTItem avoids using lookup table if possible
 - GradientEditorItem has a method to ask whether the gradient is trivial (can be applied without the use of a lookup table)
 - ROI, LinearRegionItem, InfiniteLine no longer redraw for every mouse movement
2012-04-04 09:29:35 -04:00
Luke Campagnola
5a357ddb2a Several minor bugfixes and features
- Added rate-limited mode to SignalProxy
  - Added basic text justification to LabelItem
  - ViewBox.addItem now has ignoreBounds option, which causes the item to be ignored when autoscaling
  - Added ValueLabel widget
  - Fixed some autoscaling bugs
  - InfiniteLine fix - no hilight if movable=False
2012-04-03 01:01:33 -04:00
Luke Campagnola
bdef8dc4c7 fixed example menu on windows 2012-03-30 15:53:10 -04:00
Luke Campagnola
ad232ff79b - re-merged isocurve code
- re-enabled OpenGL on windows, added a config option for enabling/disabling OpenGL
- minor bug fixes
2012-03-27 12:30:51 -04:00
Luke Campagnola
543d56f0a6 reverted plotitem bug 2012-03-25 02:25:02 -04:00
Luke Campagnola
f6da6e2fd0 Added matplotlib exporter
Updates to MeshData class (this is still not tested)
2012-03-23 22:13:41 -04:00
Luke Campagnola
c814499bee Added features from meganbkratz:
- isocurves
 - array processing through gradientwidget
2012-03-23 13:38:53 -04:00
Luke Campagnola
7e926ba136 Bugfix for plot linking 2012-03-23 04:04:04 -04:00
Luke Campagnola
04291a9300 reconnected viewbox range-change signals through plotitem. 2012-03-23 02:46:59 -04:00
Luke Campagnola
3b2ef16071 bugfix for view linking, example update 2012-03-23 02:42:32 -04:00