f136b33033
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. |
||
---|---|---|
doc | ||
examples | ||
pyqtgraph | ||
tests | ||
tools | ||
.gitignore | ||
.mailmap | ||
CHANGELOG | ||
LICENSE.txt | ||
MANIFEST.in | ||
README.md | ||
setup.py |
PyQtGraph
A pure-Python graphics library for PyQt/PySide
Copyright 2012 Luke Campagnola, University of North Carolina at Chapel Hill
Maintainer
- Luke Campagnola ('luke.campagnola@%s.com' % 'gmail')
Contributors
- Megan Kratz
- Paul Manis
- Ingo Breßler
- Christian Gavin
- Michael Cristopher Hogg
- Ulrich Leutner
- Felix Schill
- Guillaume Poulin
Requirements
- PyQt 4.7+ or PySide
- python 2.6, 2.7, or 3.x
- numpy, scipy
- For 3D graphics: pyopengl
- Known to run on Windows, Linux, and Mac.
Support
Post at the mailing list / forum
Installation Methods
- To use with a specific project, simply copy the pyqtgraph subdirectory anywhere that is importable from your project
- To install system-wide from source distribution:
$ python setup.py install
- For instalation packages, see the website (pyqtgraph.org)
Documentation
There are many examples; run python -m pyqtgraph.examples
for a menu.
Some (incomplete) documentation exists at this time.
- Easiest place to get documentation is at http://www.pyqtgraph.org/documentation
- If you acquired this code as a .tar.gz file from the website, then you can also look in doc/html.
- If you acquired this code via GitHub, then you can build the documentation using sphinx.
From the documentation directory, run:
$ make html
Please feel free to pester Luke or post to the forum if you need a specific section of documentation.